public class WsConfiguration extends ClientConfiguration
maxRetries, monitor, onFailedAttempt, onRetriesExceeded, retryInterval, scheduler, url, worker| Constructor and Description |
|---|
WsConfiguration(String url,
org.xnio.XnioWorker worker,
ScheduledExecutorService scheduler,
ConnectionMonitor monitor) |
WsConfiguration(String url,
org.xnio.XnioWorker worker,
ScheduledExecutorService scheduler,
ConnectionMonitor monitor,
WebSocketClientEndpoint endpoint) |
| Modifier and Type | Method and Description |
|---|---|
WsConfiguration |
clientEndpoint(WebSocketClientEndpoint endpoint) |
WsConnection |
connect() |
WsConfiguration |
maxRetries(int maxRetries) |
WsConfiguration |
onBinary(java.util.function.BiConsumer<io.undertow.websockets.core.WebSocketChannel,io.undertow.websockets.core.BufferedBinaryMessage> onBinary) |
WsConfiguration |
onClose(java.util.function.BiConsumer<io.undertow.websockets.core.WebSocketChannel,io.undertow.websockets.core.CloseMessage> onClose) |
WsConfiguration |
onConnect(java.util.function.Consumer<io.undertow.websockets.core.WebSocketChannel> onConnect) |
WsConfiguration |
onError(java.util.function.BiConsumer<io.undertow.websockets.core.WebSocketChannel,Exception> onError) |
WsConfiguration |
onFailedAttempt(Runnable onFailedAttempt) |
WsConfiguration |
onPing(java.util.function.BiConsumer<io.undertow.websockets.core.WebSocketChannel,io.undertow.websockets.core.BufferedBinaryMessage> onPing) |
WsConfiguration |
onPong(java.util.function.BiConsumer<io.undertow.websockets.core.WebSocketChannel,io.undertow.websockets.core.BufferedBinaryMessage> onPong) |
WsConfiguration |
onRetriesExceeded(Runnable onRetriesExceeded) |
WsConfiguration |
onText(java.util.function.BiConsumer<io.undertow.websockets.core.WebSocketChannel,io.undertow.websockets.core.BufferedTextMessage> onText) |
WsConfiguration |
retryInterval(int retryInterval) |
public WsConfiguration(String url, org.xnio.XnioWorker worker, ScheduledExecutorService scheduler, ConnectionMonitor monitor)
public WsConfiguration(String url, org.xnio.XnioWorker worker, ScheduledExecutorService scheduler, ConnectionMonitor monitor, WebSocketClientEndpoint endpoint)
public WsConfiguration onConnect(java.util.function.Consumer<io.undertow.websockets.core.WebSocketChannel> onConnect)
public WsConfiguration onClose(java.util.function.BiConsumer<io.undertow.websockets.core.WebSocketChannel,io.undertow.websockets.core.CloseMessage> onClose)
public WsConfiguration onPing(java.util.function.BiConsumer<io.undertow.websockets.core.WebSocketChannel,io.undertow.websockets.core.BufferedBinaryMessage> onPing)
public WsConfiguration onPong(java.util.function.BiConsumer<io.undertow.websockets.core.WebSocketChannel,io.undertow.websockets.core.BufferedBinaryMessage> onPong)
public WsConfiguration onText(java.util.function.BiConsumer<io.undertow.websockets.core.WebSocketChannel,io.undertow.websockets.core.BufferedTextMessage> onText)
public WsConfiguration onBinary(java.util.function.BiConsumer<io.undertow.websockets.core.WebSocketChannel,io.undertow.websockets.core.BufferedBinaryMessage> onBinary)
public WsConfiguration onError(java.util.function.BiConsumer<io.undertow.websockets.core.WebSocketChannel,Exception> onError)
public WsConfiguration onFailedAttempt(Runnable onFailedAttempt)
public WsConfiguration onRetriesExceeded(Runnable onRetriesExceeded)
public WsConfiguration retryInterval(int retryInterval)
public WsConfiguration maxRetries(int maxRetries)
public WsConfiguration clientEndpoint(WebSocketClientEndpoint endpoint)
public WsConnection connect()
Copyright © 2017. All rights reserved.