|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectmandala.rami.AbstractAsynchronousReference
mandala.rami.impl.AsynchronousReferencePairImpl
Direct implementation of the AsynchronousReferencePair
class.
AsynchronousReferencePair,
Serialized Form| Nested Class Summary |
| Nested classes inherited from class mandala.rami.AsynchronousReferencePair |
AsynchronousReferencePair.CallReflection |
| Field Summary | |
protected AsynchronousReference |
head
|
| Fields inherited from class mandala.rami.AbstractAsynchronousReference |
callbackManager, syslog |
| Constructor Summary | |
protected |
AsynchronousReferencePairImpl(AsynchronousReference head,
CallbackManager callbackManager)
Creates a new AsynchronousReferencePairImpl
instance. |
| Method Summary | |
FutureClient |
call(MethodOp method,
Object[] args,
Callback callback)
Call a method asynchronously. |
CallbackManager |
getCallbackManager()
Returns the CallbackManager of this
instance. |
AsynchronousReference |
getHead()
Returns the head of this asynchronous reference pair. |
static AsynchronousReferencePairImpl |
getInstance(AsynchronousReference head,
CallbackManager callbackManager)
Gets the AsynchronousReferencePairImpl instance which
handles reflexive asynchronous method invocation on the specified pair
of asynchronous reference. |
Object |
getObject()
Returns the object this Reference refers
to. |
static Syslog |
getSyslog()
Returns the logger. |
AsynchronousReference |
getTail()
Returns the tail of this asynchronous reference pair. |
String |
toString()
|
| Methods inherited from class mandala.rami.AbstractAsynchronousReference |
call, setSyslog |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface mandala.rami.AsynchronousReference |
call |
| Field Detail |
protected AsynchronousReference head
| Constructor Detail |
protected AsynchronousReferencePairImpl(AsynchronousReference head,
CallbackManager callbackManager)
Creates a new AsynchronousReferencePairImpl
instance.
The caller must ensure that head.getObject() == tail,
otherwise, the behaviour of the created instance is undefined !
head - an AsynchronousReference value| Method Detail |
public FutureClient call(MethodOp method,
Object[] args,
Callback callback)
AsynchronousReferenceCall a method asynchronously.
Since the call is asynchronous, exceptions are not handled in an
usual way. Implementations may provide a mechanism conform to the
FutureClient specification.
The method done of the specified Callback
is called once the reflexive asynchronous method invocation is done.
The Callback instance returned by CallbackManager.getCallback() is not
used.
call in interface AsynchronousReferencecall in class AbstractAsynchronousReferencepublic CallbackManager getCallbackManager()
AsynchronousReferenceReturns the CallbackManager of this
instance.
getCallbackManager in interface AsynchronousReferencegetCallbackManager in class AbstractAsynchronousReferencepublic Object getObject()
ReferenceReturns the object this Reference refers
to.
getObject in interface ReferenceReference
refers to.public AsynchronousReference getHead()
AsynchronousReferencePairReturns the head of this asynchronous reference pair.
getHead in interface AsynchronousReferencePairhead of this asynchronous reference pairpublic AsynchronousReference getTail()
AsynchronousReferencePairReturns the tail of this asynchronous reference pair.
getTail in interface AsynchronousReferencePairtail of this asynchronous reference pairpublic String toString()
toString in class AbstractAsynchronousReferencepublic static Syslog getSyslog()
AbstractAsynchronousReferenceReturns the logger.
public static AsynchronousReferencePairImpl getInstance(AsynchronousReference head,
CallbackManager callbackManager)
Gets the AsynchronousReferencePairImpl instance which
handles reflexive asynchronous method invocation on the specified pair
of asynchronous reference.
This class implements the singleton design pattern. If the related instance doesn't exist, it is created.
head - the head of the pair of asynchronous reference to handle
reflexive asynchronous method invocation onto.
AsynchronousReferencePairImpl instance which
handles reflexive asynchronous method invocation on the pair of
asynchronous references.
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||