Class ClientConnectionHandler

java.lang.Object
software.amazon.awssdk.crt.eventstream.ClientConnectionHandler
All Implemented Interfaces:
AutoCloseable

public abstract class ClientConnectionHandler extends Object implements AutoCloseable
Handler for EventStream ClientConnections. It's marked AutoClosable. By default onConnectionClosed, calls the close() function on this object.
  • Constructor Details

    • ClientConnectionHandler

      public ClientConnectionHandler()
  • Method Details

    • getConnectionClosedFuture

      public CompletableFuture<Integer> getConnectionClosedFuture()
      Returns:
      a future for syncing on Connection closed.
    • close

      public void close()
      Specified by:
      close in interface AutoCloseable