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

    Fields inherited from interface org.nustaq.kontraktor.Callback

    CONT
  • Constructor Summary

    Constructors 
    Constructor Description
    MyRemotedCallback​(java.util.concurrent.atomic.AtomicReference<ObjectSocket> chan, long id)  
  • Method Summary

    Modifier and Type Method Description
    void complete​(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.
    int getChanId()  
    long getId()  
    boolean isTerminated()
    relevant for remoted callback's

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface org.nustaq.kontraktor.Callback

    complete, finish, pipe, reject, resolve, resolve
  • 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: Callback
      set result or error. error might also contain flow indicators to signal end/continue of stream when remoting. (Actor.FIN Actor.CONT)
      Specified by:
      complete in interface Callback
    • isTerminated

      public boolean isTerminated()
      Description copied from interface: Callback
      relevant for remoted callback's
      Specified by:
      isTerminated in interface Callback
      Specified by:
      isTerminated in interface RemotedCallback
      Returns:
      true if the client owning this remote callback proxy has disconnected