|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectmandala.rami.AbstractAsynchronousReference
Abstract implementation of the AsynchronousReference
interface.
AsynchronousReference
,
FutureClient
,
FutureServer
,
CallbackManager
,
Serialized FormField Summary | |
protected CallbackManager |
callbackManager
The manager of Callback for this
instance. |
protected static Syslog |
syslog
Message logger. |
Constructor Summary | |
protected |
AbstractAsynchronousReference(CallbackManager callbackManager)
Creates a new AbstractAsynchronousReference
instance. |
Method Summary | |
FutureClient |
call(MethodOp method,
java.lang.Object[] args)
Call a method asynchronously. |
abstract FutureClient |
call(MethodOp method,
java.lang.Object[] args,
Callback callBack)
Call a method asynchronously. |
CallbackManager |
getCallbackManager()
Returns the CallbackManager of this
instance. |
static Syslog |
getSyslog()
Returns the logger. |
static void |
setSyslog(Syslog syslog)
Sets the logger. |
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Methods inherited from interface mandala.rami.Reference |
getObject |
Field Detail |
protected CallbackManager callbackManager
The manager of Callback
for this
instance.
CallbackManager
protected static Syslog syslog
Message logger.
Each message (debug, log, warning, error, ...) are wrote to this message logger.
Syslog
Constructor Detail |
protected AbstractAsynchronousReference(CallbackManager callbackManager)
Creates a new AbstractAsynchronousReference
instance.
callbackManager
- the manager of
Callback
for this instance.Method Detail |
public FutureClient call(MethodOp method, java.lang.Object[] args)
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 Callback.done(InvocationInfo, MethodResult)
of the
instance returned by CallbackManager.getCallback()
is called
once the reflexive asynchronous method invocation is done.
call
in interface AsynchronousReference
method
- the method to callargs
- method's parameters
FutureClient
object.FutureClient
,
CallbackManager
,
Callback
public abstract 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
method
- the method to callargs
- method's parameterscallBack
- the callback to use.
FutureClient
object.FutureClient
,
Callback
,
CallbackList
public CallbackManager getCallbackManager()
AsynchronousReference
Returns the CallbackManager
of this
instance.
getCallbackManager
in interface AsynchronousReference
CallbackManager
of this
instance.CallbackManager
public java.lang.String toString()
public static Syslog getSyslog()
Returns the logger.
public static void setSyslog(Syslog syslog)
Sets the logger.
syslog
- the logger to set
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |