Package io.kubernetes.client.util
Class WebSockets
java.lang.Object
io.kubernetes.client.util.WebSockets
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic class
static interface
A simple interface for a listener on a web socket -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic void
stream
(String path, String method, io.kubernetes.client.openapi.ApiClient client, WebSockets.SocketListener listener) Create a new WebSocket streamstatic void
stream
(String path, String method, List<io.kubernetes.client.openapi.Pair> queryParams, io.kubernetes.client.openapi.ApiClient client, WebSockets.SocketListener listener) static void
stream
(okhttp3.Call call, io.kubernetes.client.openapi.ApiClient client, WebSockets.SocketListener listener)
-
Field Details
-
V4_STREAM_PROTOCOL
- See Also:
-
STREAM_PROTOCOL_HEADER
- See Also:
-
SPDY_3_1
- See Also:
-
CONNECTION
- See Also:
-
UPGRADE
- See Also:
-
-
Constructor Details
-
WebSockets
public WebSockets()
-
-
Method Details
-
stream
public static void stream(String path, String method, io.kubernetes.client.openapi.ApiClient client, WebSockets.SocketListener listener) throws io.kubernetes.client.openapi.ApiException, IOException Create a new WebSocket stream- Parameters:
path
- The HTTP Path to request from the APImethod
- The HTTP method to use for the callclient
- The ApiClient for communicating with the APIlistener
- The socket listener to handle socket events- Throws:
io.kubernetes.client.openapi.ApiException
IOException
-
stream
public static void stream(String path, String method, List<io.kubernetes.client.openapi.Pair> queryParams, io.kubernetes.client.openapi.ApiClient client, WebSockets.SocketListener listener) throws io.kubernetes.client.openapi.ApiException, IOException - Throws:
io.kubernetes.client.openapi.ApiException
IOException
-
stream
public static void stream(okhttp3.Call call, io.kubernetes.client.openapi.ApiClient client, WebSockets.SocketListener listener)
-