public class OutboundWebSocket extends Object implements org.mule.runtime.http.api.ws.WebSocket
WebSocket.
Reconnection is supported on this implementation.
| Constructor and Description |
|---|
OutboundWebSocket(String id,
URI uri,
org.mule.runtime.http.api.ws.WebSocketProtocol protocol,
com.ning.http.client.providers.grizzly.websocket.GrizzlyWebSocketAdapter delegate,
OutboundWebSocketReconnectionHandler reconnectionHandler) |
| Modifier and Type | Method and Description |
|---|---|
void |
addGroup(String group) |
CompletableFuture<Void> |
close(org.mule.runtime.http.api.ws.WebSocketCloseCode code,
String reason) |
boolean |
equals(Object obj) |
FragmentHandler |
getFragmentHandler(Consumer<FragmentHandler> newFragmentHandlerCallback) |
List<String> |
getGroups() |
String |
getId() |
org.mule.runtime.http.api.ws.WebSocketProtocol |
getProtocol() |
org.mule.runtime.http.api.ws.WebSocket.WebSocketType |
getType() |
URI |
getUri() |
int |
hashCode() |
boolean |
isClosed() |
boolean |
isConnected() |
CompletableFuture<org.mule.runtime.http.api.ws.WebSocket> |
reconnect(org.mule.runtime.core.api.retry.policy.RetryPolicyTemplate retryPolicyTemplate,
org.mule.runtime.api.scheduler.Scheduler scheduler)
This method is supported on this implementation.
|
void |
removeGroup(String group) |
CompletableFuture<Void> |
send(InputStream content,
org.mule.runtime.api.metadata.MediaType mediaType) |
CompletableFuture<Void> |
sendFrame(byte[] frameBytes) |
boolean |
supportsReconnection() |
byte[] |
toBinaryFrame(byte[] data,
boolean last) |
String |
toString() |
byte[] |
toTextFrame(String data,
boolean last) |
public OutboundWebSocket(String id, URI uri, org.mule.runtime.http.api.ws.WebSocketProtocol protocol, com.ning.http.client.providers.grizzly.websocket.GrizzlyWebSocketAdapter delegate, OutboundWebSocketReconnectionHandler reconnectionHandler)
public CompletableFuture<Void> send(InputStream content, org.mule.runtime.api.metadata.MediaType mediaType)
send in interface org.mule.runtime.http.api.ws.WebSocketpublic CompletableFuture<Void> sendFrame(byte[] frameBytes)
sendFrame in interface org.mule.runtime.http.api.ws.WebSocketpublic byte[] toTextFrame(String data, boolean last)
toTextFrame in interface org.mule.runtime.http.api.ws.WebSocketpublic byte[] toBinaryFrame(byte[] data,
boolean last)
toBinaryFrame in interface org.mule.runtime.http.api.ws.WebSocketpublic boolean supportsReconnection()
supportsReconnection in interface org.mule.runtime.http.api.ws.WebSockettruepublic CompletableFuture<org.mule.runtime.http.api.ws.WebSocket> reconnect(org.mule.runtime.core.api.retry.policy.RetryPolicyTemplate retryPolicyTemplate, org.mule.runtime.api.scheduler.Scheduler scheduler)
reconnect in interface org.mule.runtime.http.api.ws.WebSocketpublic FragmentHandler getFragmentHandler(Consumer<FragmentHandler> newFragmentHandlerCallback)
public String getId()
getId in interface org.mule.runtime.http.api.ws.WebSocketpublic List<String> getGroups()
getGroups in interface org.mule.runtime.http.api.ws.WebSocketpublic void addGroup(String group)
addGroup in interface org.mule.runtime.http.api.ws.WebSocketpublic void removeGroup(String group)
removeGroup in interface org.mule.runtime.http.api.ws.WebSocketpublic CompletableFuture<Void> close(org.mule.runtime.http.api.ws.WebSocketCloseCode code, String reason)
close in interface org.mule.runtime.http.api.ws.WebSocketpublic org.mule.runtime.http.api.ws.WebSocket.WebSocketType getType()
getType in interface org.mule.runtime.http.api.ws.WebSocketpublic org.mule.runtime.http.api.ws.WebSocketProtocol getProtocol()
getProtocol in interface org.mule.runtime.http.api.ws.WebSocketpublic URI getUri()
getUri in interface org.mule.runtime.http.api.ws.WebSocketpublic boolean isClosed()
isClosed in interface org.mule.runtime.http.api.ws.WebSocketpublic boolean isConnected()
isConnected in interface org.mule.runtime.http.api.ws.WebSocketCopyright © 2003–2025 MuleSoft, Inc.. All rights reserved.