|
|||||||||||
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 FormNested 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,
java.lang.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. |
java.lang.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. |
java.lang.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
valueMethod Detail |
public FutureClient call(MethodOp method, java.lang.Object[] args, Callback callback)
AsynchronousReference
Call a method asynchronously.
Since the call is asynchronous, exceptions are not handled in an
usual way. Implementations must 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. If multiple callbacks are needed, see CallbackList
.
call
in interface AsynchronousReference
call
in class AbstractAsynchronousReference
public CallbackManager getCallbackManager()
AsynchronousReference
Returns the CallbackManager
of this
instance.
getCallbackManager
in interface AsynchronousReference
getCallbackManager
in class AbstractAsynchronousReference
public java.lang.Object getObject()
Reference
Returns the object this Reference
refers
to.
getObject
in interface Reference
Reference
refers to.public AsynchronousReference getHead()
AsynchronousReferencePair
Returns the head
of this asynchronous reference pair.
getHead
in interface AsynchronousReferencePair
head
of this asynchronous reference pairpublic AsynchronousReference getTail()
AsynchronousReferencePair
Returns the tail
of this asynchronous reference pair.
getTail
in interface AsynchronousReferencePair
tail
of this asynchronous reference pairpublic java.lang.String toString()
toString
in class AbstractAsynchronousReference
public static Syslog getSyslog()
AbstractAsynchronousReference
Returns 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 |