public interface ExecListener
Modifier and Type | Interface and Description |
---|---|
static interface |
ExecListener.Response |
Modifier and Type | Method and Description |
---|---|
void |
onClose(int code,
String reason)
Called when the server sends a close message.
|
default void |
onFailure(Throwable t,
ExecListener.Response failureResponse)
Called when the transport or protocol layer of this web socket errors during communication.
|
default void |
onOpen()
Called when the request has successfully been upgraded to a web socket.
|
default void onOpen()
default void onFailure(Throwable t, ExecListener.Response failureResponse)
t
- ThrowablefailureResponse
- non-null if the failure is caused by the handshakevoid onClose(int code, String reason)
code
- The RFC-compliant
status code.reason
- Reason for close or an empty string.Copyright © 2015–2020 Red Hat. All rights reserved.