public abstract class WebSocketDecorator extends Object implements org.mule.runtime.http.api.ws.WebSocket
WebSocket decorators| Modifier and Type | Field and Description |
|---|---|
protected org.mule.runtime.http.api.ws.WebSocket |
delegate |
| Constructor and Description |
|---|
WebSocketDecorator(org.mule.runtime.http.api.ws.WebSocket delegate) |
| 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) |
org.mule.runtime.http.api.ws.WebSocket |
getDelegate() |
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) |
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) |
byte[] |
toTextFrame(String data,
boolean last) |
public WebSocketDecorator(org.mule.runtime.http.api.ws.WebSocket delegate)
public String getId()
getId 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 supportsReconnection()
supportsReconnection in interface org.mule.runtime.http.api.ws.WebSocketpublic 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 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> 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 CompletableFuture<Void> close(org.mule.runtime.http.api.ws.WebSocketCloseCode code, String reason)
close 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.WebSocketpublic org.mule.runtime.http.api.ws.WebSocket getDelegate()
Copyright © 2024 MuleSoft, Inc.. All rights reserved.