public class SynchronizedWebSocketDecorator extends WebSocketDecorator
| Modifier and Type | Field and Description |
|---|---|
protected Lock |
socketLock |
delegate| Constructor and Description |
|---|
SynchronizedWebSocketDecorator(org.mule.runtime.http.api.ws.WebSocket delegate) |
| Modifier and Type | Method and Description |
|---|---|
CompletableFuture<Void> |
close(org.mule.runtime.http.api.ws.WebSocketCloseCode code,
String reason) |
CompletableFuture<Void> |
send(InputStream content,
org.mule.runtime.api.metadata.MediaType mediaType) |
CompletableFuture<Void> |
sendFrame(byte[] frameBytes) |
protected <T> T |
synchronizedOperation(org.mule.runtime.core.api.util.func.CheckedSupplier<T> action) |
addGroup, equals, getDelegate, getGroups, getId, getProtocol, getType, getUri, hashCode, isClosed, isConnected, reconnect, removeGroup, supportsReconnection, toBinaryFrame, toTextFrameprotected final Lock socketLock
public SynchronizedWebSocketDecorator(org.mule.runtime.http.api.ws.WebSocket delegate)
public CompletableFuture<Void> close(org.mule.runtime.http.api.ws.WebSocketCloseCode code, String reason)
close in interface org.mule.runtime.http.api.ws.WebSocketclose in class WebSocketDecoratorpublic CompletableFuture<Void> send(InputStream content, org.mule.runtime.api.metadata.MediaType mediaType)
send in interface org.mule.runtime.http.api.ws.WebSocketsend in class WebSocketDecoratorpublic CompletableFuture<Void> sendFrame(byte[] frameBytes)
sendFrame in interface org.mule.runtime.http.api.ws.WebSocketsendFrame in class WebSocketDecoratorprotected <T> T synchronizedOperation(org.mule.runtime.core.api.util.func.CheckedSupplier<T> action)
Copyright © 2024 MuleSoft, Inc.. All rights reserved.