Class SynchronousTransfer.Message

  • All Implemented Interfaces:
    java.lang.AutoCloseable
    Enclosing class:
    SynchronousTransfer<C,​S,​E extends java.lang.Exception>

    public class SynchronousTransfer.Message
    extends java.lang.Object
    implements java.lang.AutoCloseable
    • Method Summary

      Modifier and Type Method Description
      void close()  
      void complete​(S object)  
      void completeExceptionally​(java.lang.Throwable ex)  
      java.util.concurrent.Future<S> getFuture()  
      C getObject()  
      boolean isCompleted()  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • getObject

        public C getObject()
      • getFuture

        public java.util.concurrent.Future<S> getFuture()
      • isCompleted

        public boolean isCompleted()
      • complete

        public void complete​(S object)
      • completeExceptionally

        public void completeExceptionally​(java.lang.Throwable ex)
      • close

        public void close()
                   throws java.lang.Exception
        Specified by:
        close in interface java.lang.AutoCloseable
        Throws:
        java.lang.Exception