Class CallbackRefSerializer.MyRemotedCallback
java.lang.Object
org.nustaq.kontraktor.remoting.encoding.CallbackRefSerializer.MyRemotedCallback
- All Implemented Interfaces:
java.io.Serializable,Callback,RemotedCallback
- Enclosing class:
- CallbackRefSerializer
public class CallbackRefSerializer.MyRemotedCallback extends java.lang.Object implements Callback, RemotedCallback
- See Also:
- Serialized Form
-
Field Summary
-
Constructor Summary
Constructors Constructor Description MyRemotedCallback(java.util.concurrent.atomic.AtomicReference<ObjectSocket> chan, long id) -
Method Summary
Modifier and Type Method Description voidcomplete(java.lang.Object result, java.lang.Object error)set result or error. error might also contain flow indicators to signal end/continue of stream when remoting.intgetChanId()longgetId()booleanisTerminated()relevant for remoted callback's
-
Constructor Details
-
Method Details
-
getChanId
public int getChanId() -
getId
public long getId() -
complete
public void complete(java.lang.Object result, java.lang.Object error)Description copied from interface:Callbackset result or error. error might also contain flow indicators to signal end/continue of stream when remoting. (Actor.FIN Actor.CONT) -
isTerminated
public boolean isTerminated()Description copied from interface:Callbackrelevant for remoted callback's- Specified by:
isTerminatedin interfaceCallback- Specified by:
isTerminatedin interfaceRemotedCallback- Returns:
- true if the client owning this remote callback proxy has disconnected
-