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 Summary
Constructors Constructor Description ClientConnectionHandler()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
close()
CompletableFuture<Integer>
getConnectionClosedFuture()
-
-
-
Method Detail
-
getConnectionClosedFuture
public CompletableFuture<Integer> getConnectionClosedFuture()
- Returns:
- a future for syncing on Connection closed.
-
close
public void close()
- Specified by:
close
in interfaceAutoCloseable
-
-