public static interface EventStreamRPCConnection.LifecycleHandler
| Modifier and Type | Method and Description |
|---|---|
void |
onConnect()
Invoked only if there is a successful connection.
|
void |
onDisconnect(int errorCode)
Invoked for both connect failures and disconnects from a healthy state
|
boolean |
onError(Throwable t)
Used to communicate errors that occur on the connection during any phase of its lifecycle that may
not appropriately or easily attach to onConnect() or onDisconnect().
|
default void |
onPing(List<software.amazon.awssdk.crt.eventstream.Header> headers,
byte[] payload)
Do nothing on ping by default.
|
void onConnect()
void onDisconnect(int errorCode)
errorCode - boolean onError(Throwable t)
t - Exceptiondefault void onPing(List<software.amazon.awssdk.crt.eventstream.Header> headers, byte[] payload)
Copyright ? 2021. All rights reserved.