|
|||||||||||
| 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 Form| Field Summary | |
protected static int |
DELTA_PRIORITY
new Thread is given priority equals to NORM_PRIORITY + DELTA_PRIORITY. |
protected ThreadGroup |
threadGroup
|
protected static int |
threadPriority
Priority of new threads. |
| Constructor Summary | |
ThreadedPolicy()
Creates a new ThreadedPolicy
instance. |
|
ThreadedPolicy(ThreadGroup threadGroup)
Creates a new ThreadedPolicy
instance. |
|
| Method Summary | |
Cancelable |
call(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 ThreadGroup threadGroup
| Constructor Detail |
public ThreadedPolicy()
Creates a new ThreadedPolicy
instance.
public ThreadedPolicy(ThreadGroup threadGroup)
Creates a new ThreadedPolicy
instance.
threadGroup - the ThreadGroup threads must belong to| Method Detail |
public Cancelable call(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 AsynchronousPolicyobject - 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 | ||||||||||