|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectmandala.rami.impl.ThreadedPolicy
Concurrent, threaded implementation of the
AsynchronousPolicy
interface.
This implementation uses the MethodInvoker
for its method
invocation implementation.
ConcurrentSemantic
,
AsynchronousPolicy
,
MethodInvoker
,
Serialized FormField Summary | |
protected static int |
DELTA_PRIORITY
new Thread is given priority equals to NORM_PRIORITY + DELTA_PRIORITY. |
protected java.lang.ThreadGroup |
threadGroup
|
protected static int |
threadPriority
Priority of new threads. |
Constructor Summary | |
ThreadedPolicy()
Creates a new ThreadedPolicy
instance. |
|
ThreadedPolicy(java.lang.ThreadGroup threadGroup)
Creates a new ThreadedPolicy
instance. |
Method Summary | |
Cancelable |
call(java.lang.Object object,
FutureServer futureServer)
Asynchronous implementation of a method invocation. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
protected static final int DELTA_PRIORITY
new Thread is given priority equals to NORM_PRIORITY + DELTA_PRIORITY.
Thread
,
Constant Field Valuesprotected static final int threadPriority
Priority of new threads.
Thread
,
Constant Field Valuesprotected transient java.lang.ThreadGroup threadGroup
Constructor Detail |
public ThreadedPolicy()
Creates a new ThreadedPolicy
instance.
public ThreadedPolicy(java.lang.ThreadGroup threadGroup)
Creates a new ThreadedPolicy
instance.
threadGroup
- the ThreadGroup
threads must belong toMethod Detail |
public Cancelable call(java.lang.Object object, FutureServer futureServer)
Asynchronous implementation of a method invocation.
This implementation start a new thread to execute the
MethodInvoker.run()
metod.
call
in interface AsynchronousPolicy
object
- the object on which the method is to be invoked.futureServer
- a FutureServer
value
MethodInvoker
,
FutureServer
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |