Class JettyWebSocket
- java.lang.Object
-
- io.fabric8.kubernetes.client.jetty.JettyWebSocket
-
- All Implemented Interfaces:
io.fabric8.kubernetes.client.http.WebSocket,org.eclipse.jetty.websocket.api.WebSocketConnectionListener,org.eclipse.jetty.websocket.api.WebSocketListener
public class JettyWebSocket extends Object implements io.fabric8.kubernetes.client.http.WebSocket, org.eclipse.jetty.websocket.api.WebSocketListener
-
-
Constructor Summary
Constructors Constructor Description JettyWebSocket(io.fabric8.kubernetes.client.http.WebSocket.Listener listener)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidonWebSocketBinary(byte[] payload, int offset, int len)voidonWebSocketClose(int statusCode, String reason)voidonWebSocketConnect(org.eclipse.jetty.websocket.api.Session session)voidonWebSocketError(Throwable cause)The semantics here are different than jdk/okhttp - onClose will be invoked after this, if it has not already been called.voidonWebSocketText(String message)longqueueSize()voidrequest()booleansend(ByteBuffer buffer)booleansendClose(int code, String reason)
-
-
-
Method Detail
-
send
public boolean send(ByteBuffer buffer)
- Specified by:
sendin interfaceio.fabric8.kubernetes.client.http.WebSocket
-
sendClose
public boolean sendClose(int code, String reason)- Specified by:
sendClosein interfaceio.fabric8.kubernetes.client.http.WebSocket
-
queueSize
public long queueSize()
- Specified by:
queueSizein interfaceio.fabric8.kubernetes.client.http.WebSocket
-
request
public void request()
- Specified by:
requestin interfaceio.fabric8.kubernetes.client.http.WebSocket
-
onWebSocketBinary
public void onWebSocketBinary(byte[] payload, int offset, int len)- Specified by:
onWebSocketBinaryin interfaceorg.eclipse.jetty.websocket.api.WebSocketListener
-
onWebSocketText
public void onWebSocketText(String message)
- Specified by:
onWebSocketTextin interfaceorg.eclipse.jetty.websocket.api.WebSocketListener
-
onWebSocketClose
public void onWebSocketClose(int statusCode, String reason)- Specified by:
onWebSocketClosein interfaceorg.eclipse.jetty.websocket.api.WebSocketConnectionListener
-
onWebSocketConnect
public void onWebSocketConnect(org.eclipse.jetty.websocket.api.Session session)
- Specified by:
onWebSocketConnectin interfaceorg.eclipse.jetty.websocket.api.WebSocketConnectionListener
-
onWebSocketError
public void onWebSocketError(Throwable cause)
The semantics here are different than jdk/okhttp - onClose will be invoked after this, if it has not already been called. So we need to skip erroneously notifying- Specified by:
onWebSocketErrorin interfaceorg.eclipse.jetty.websocket.api.WebSocketConnectionListener
-
-