Class DryRunGatewayConnection

  • All Implemented Interfaces:
    GatewayConnection

    public class DryRunGatewayConnection
    extends java.lang.Object
    implements GatewayConnection
    Dummy implementation.
    Author:
    dybis
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void close()  
      boolean connect()  
      java.time.Instant connectionTime()
      Returns the time this connected over the network, or null if not connected yet
      java.io.InputStream drain()
      Attempt to drain all outstanding operations, even if this leads to blocking
      Endpoint getEndpoint()  
      void handshake()  
      java.util.List<Document> held()
      Returns the document currently held in this
      void hold​(boolean hold)  
      java.time.Instant lastPollTime()
      Returns the last time poll was called on this, or null if never
      java.io.InputStream poll()
      Returns any operation results that are ready now
      void throwOnHandshake​(ServerResponseException throwThisOnHandshake)  
      void throwOnWrite​(java.io.IOException throwThisOnWrite)  
      java.io.InputStream write​(java.util.List<Document> docs)  
      • Methods inherited from class java.lang.Object

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

      • DryRunGatewayConnection

        public DryRunGatewayConnection​(Endpoint endpoint,
                                       java.time.Clock clock)