Class WebsocketGatewayClient
- java.lang.Object
-
- io.fluxcapacitor.javaclient.common.websocket.AbstractWebsocketClient
-
- io.fluxcapacitor.javaclient.publishing.client.WebsocketGatewayClient
-
- All Implemented Interfaces:
Monitored<SerializedMessage>,GatewayClient,AutoCloseable
public class WebsocketGatewayClient extends AbstractWebsocketClient implements GatewayClient
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class io.fluxcapacitor.javaclient.common.websocket.AbstractWebsocketClient
AbstractWebsocketClient.WebSocketRequest
-
-
Field Summary
-
Fields inherited from class io.fluxcapacitor.javaclient.common.websocket.AbstractWebsocketClient
defaultObjectMapper
-
-
Constructor Summary
Constructors Constructor Description WebsocketGatewayClient(String endPointUrl, int backlogSize, WebSocketClient.Properties properties)WebsocketGatewayClient(String endPointUrl, WebSocketClient.Properties properties)WebsocketGatewayClient(URI endPointUri, int backlogSize, WebSocketClient.Properties properties)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description RegistrationregisterMonitor(Consumer<SerializedMessage> monitor)Awaitablesend(SerializedMessage... messages)-
Methods inherited from class io.fluxcapacitor.javaclient.common.websocket.AbstractWebsocketClient
close, close, getSession, isClosed, onClose, onError, onMessage, retryOutstandingRequests, send, sendRequest, sendRequestAndWait
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface io.fluxcapacitor.javaclient.publishing.client.GatewayClient
close
-
-
-
-
Constructor Detail
-
WebsocketGatewayClient
public WebsocketGatewayClient(String endPointUrl, WebSocketClient.Properties properties)
-
WebsocketGatewayClient
public WebsocketGatewayClient(String endPointUrl, int backlogSize, WebSocketClient.Properties properties)
-
WebsocketGatewayClient
public WebsocketGatewayClient(URI endPointUri, int backlogSize, WebSocketClient.Properties properties)
-
-
Method Detail
-
send
public Awaitable send(SerializedMessage... messages)
- Specified by:
sendin interfaceGatewayClient
-
registerMonitor
public Registration registerMonitor(Consumer<SerializedMessage> monitor)
- Specified by:
registerMonitorin interfaceMonitored<SerializedMessage>
-
-