Package io.kubernetes.client.util
Interface WebSockets.SocketListener
- All Known Implementing Classes:
WebSocketStreamHandler
- Enclosing class:
- WebSockets
public static interface WebSockets.SocketListener
A simple interface for a listener on a web socket
-
Method Summary
Modifier and TypeMethodDescriptionvoidCalled when a binary media type message is receivedvoidclose()Called when the stream is closed.voidCalled when there has been a failurevoidCalled when the socket is openedvoidtextMessage(Reader in) Called when a text media type message is received
-
Method Details
-
open
Called when the socket is opened -
bytesMessage
Called when a binary media type message is received- Parameters:
in- The input stream containing the binary data
-
textMessage
Called when a text media type message is received- Parameters:
in- The character stream containing the message
-
failure
Called when there has been a failure- Parameters:
t- the exception associated with the failure.
-
close
void close()Called when the stream is closed.
-