public class EventStreamRPCConnection extends Object implements AutoCloseable
| Modifier and Type | Class and Description |
|---|---|
static interface |
EventStreamRPCConnection.LifecycleHandler
Lifecycle handler is how a client can react and respond to connectivity interruptions.
|
| Constructor and Description |
|---|
EventStreamRPCConnection(EventStreamRPCConnectionConfig config) |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
CompletableFuture<Void> |
connect(EventStreamRPCConnection.LifecycleHandler lifecycleHandler)
Connects to the event stream RPC server asynchronously
|
void |
disconnect() |
software.amazon.awssdk.crt.eventstream.ClientConnectionContinuation |
newStream(software.amazon.awssdk.crt.eventstream.ClientConnectionContinuationHandler continuationHandler) |
CompletableFuture<Void> |
sendPing(Optional<MessageAmendInfo> pingData)
Interface to send ping.
|
CompletableFuture<Void> |
sendPingResponse(Optional<MessageAmendInfo> pingResponseData)
Interface to send pingResponse.
|
public EventStreamRPCConnection(EventStreamRPCConnectionConfig config)
public CompletableFuture<Void> connect(EventStreamRPCConnection.LifecycleHandler lifecycleHandler)
public software.amazon.awssdk.crt.eventstream.ClientConnectionContinuation newStream(software.amazon.awssdk.crt.eventstream.ClientConnectionContinuationHandler continuationHandler)
public void disconnect()
public CompletableFuture<Void> sendPing(Optional<MessageAmendInfo> pingData)
pingData - public CompletableFuture<Void> sendPingResponse(Optional<MessageAmendInfo> pingResponseData)
pingResponseData - public void close()
close in interface AutoCloseableCopyright ? 2021. All rights reserved.