mandala.rami.impl
Class SharedAPFactory

java.lang.Object
  extended bymandala.rami.impl.SharedAPFactory
All Implemented Interfaces:
AsynchronousPolicyFactory, java.io.Serializable
Direct Known Subclasses:
ThreadedAPFactory, ThreadPooledAPFactory

public class SharedAPFactory
extends java.lang.Object
implements AsynchronousPolicyFactory, java.io.Serializable

Shared asynchronous policy factory.

The AsynchronousPolicy

instance returned by getAsynchronousPolicy(Object) is always the same. This imply that the asynchronous policy is shared between multiple asynchronous reference. This is usually not a problem with ConcurrentSemantic.

Version:
1.0
Author:
eipi
See Also:
ConcurrentSemantic, AsynchronousPolicyFactory, AsynchronousReferenceImpl, Serialized Form

Constructor Summary
SharedAPFactory(AsynchronousPolicy policy)
           
 
Method Summary
 AsynchronousPolicy getAsynchronousPolicy(java.lang.Object object)
          Returns the asynchronous policy an asynchronous reference on the given object must have.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SharedAPFactory

public SharedAPFactory(AsynchronousPolicy policy)
Method Detail

getAsynchronousPolicy

public AsynchronousPolicy getAsynchronousPolicy(java.lang.Object object)
Description copied from interface: AsynchronousPolicyFactory

Returns the asynchronous policy an asynchronous reference on the given object must have.

Specified by:
getAsynchronousPolicy in interface AsynchronousPolicyFactory
Parameters:
object - the object to get an asynchronous reference with the specified asynchronous policy on.
Returns:
the asynchronous policy that must be used by asynchronous reference on the specified object.


Mandala help mailing list