mandala.rami.impl
Class RandomPolicy

java.lang.Object
  extended bymandala.rami.impl.ListAsynchronousPolicy
      extended bymandala.rami.impl.RandomPolicy
All Implemented Interfaces:
AsynchronousPolicy, java.io.Serializable, SingleThreadedSemantic

public class RandomPolicy
extends ListAsynchronousPolicy

Single-threaded, random implementation of the AsynchronousPolicy interface.

This implementation uses the MethodInvoker for its method invocation implementation.

Version:
1.0
Author:
eipi
See Also:
AsynchronousPolicy, MethodInvoker, Serialized Form

Field Summary
 
Fields inherited from class mandala.rami.impl.ListAsynchronousPolicy
DELTA_PRIORITY, invokerThread, methods, threadPriority
 
Constructor Summary
RandomPolicy()
           
 
Method Summary
protected  MethodInvoker select()
          Returns the next MethodInvoker object to be runned into the invoker thread<.p>
 java.lang.String toString()
           
 
Methods inherited from class mandala.rami.impl.ListAsynchronousPolicy
call, finalize, getCurrentSize, getInvokerThread
 
Methods inherited from class java.lang.Object
clone, equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

RandomPolicy

public RandomPolicy()
Method Detail

select

protected MethodInvoker select()
Description copied from class: ListAsynchronousPolicy

Returns the next MethodInvoker object to be runned into the invoker thread<.p>

Specified by:
select in class ListAsynchronousPolicy
Returns:
the next MethodInvoker to be runned into the invoker thread
See Also:
ListAsynchronousPolicy.invokerThread, ListAsynchronousPolicy.getInvokerThread()

toString

public java.lang.String toString()
Overrides:
toString in class ListAsynchronousPolicy


Mandala help mailing list