Package s2.client

Class ManagedAppendSession

  • All Implemented Interfaces:
    java.lang.AutoCloseable

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

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void close()  
      com.google.common.util.concurrent.ListenableFuture<java.lang.Void> closeGracefully()  
      com.google.common.util.concurrent.ListenableFuture<java.lang.Void> closeImmediately()  
      com.google.common.util.concurrent.ListenableFuture<AppendOutput> submit​(AppendInput input, java.time.Duration maxWait)  
      • Methods inherited from class java.lang.Object

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

      • submit

        public com.google.common.util.concurrent.ListenableFuture<AppendOutput> submit​(AppendInput input,
                                                                                       java.time.Duration maxWait)
                                                                                throws java.lang.InterruptedException
        Throws:
        java.lang.InterruptedException
      • closeImmediately

        public com.google.common.util.concurrent.ListenableFuture<java.lang.Void> closeImmediately()
                                                                                            throws java.lang.InterruptedException
        Throws:
        java.lang.InterruptedException
      • close

        public void close()
        Specified by:
        close in interface java.lang.AutoCloseable
      • closeGracefully

        public com.google.common.util.concurrent.ListenableFuture<java.lang.Void> closeGracefully()