Package s2.client

Class ManagedReadSession

  • All Implemented Interfaces:
    java.lang.AutoCloseable

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

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void close()  
      java.util.Optional<ReadOutput> get()  
      java.util.Optional<ReadOutput> get​(java.time.Duration maxWait)  
      boolean hasNext()  
      boolean isClosed()  
      • Methods inherited from class java.lang.Object

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

      • isClosed

        public boolean isClosed()
      • hasNext

        public boolean hasNext()
      • get

        public java.util.Optional<ReadOutput> get()
      • get

        public java.util.Optional<ReadOutput> get​(java.time.Duration maxWait)
                                           throws java.lang.InterruptedException
        Throws:
        java.lang.InterruptedException
      • close

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