mandala.rami.impl
Class SharedAPFactory
java.lang.Object
mandala.rami.impl.SharedAPFactory
- All Implemented Interfaces:
- AsynchronousPolicyFactory, Serializable
- Direct Known Subclasses:
- ThreadedAPFactory, ThreadPooledAPFactory
- public class SharedAPFactory
- extends Object
- implements AsynchronousPolicyFactory, 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
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SharedAPFactory
public SharedAPFactory(AsynchronousPolicy policy)
getAsynchronousPolicy
public AsynchronousPolicy getAsynchronousPolicy(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