@WebSocket(maxTextMessageSize=65536) public static class CmdConsume.ConsumerSocket extends Object
| Constructor and Description |
|---|
ConsumerSocket(CompletableFuture<Void> connected) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
awaitClose(int duration,
TimeUnit unit) |
void |
close() |
org.eclipse.jetty.websocket.api.RemoteEndpoint |
getRemote() |
org.eclipse.jetty.websocket.api.Session |
getSession() |
void |
onClose(int statusCode,
String reason) |
void |
onConnect(org.eclipse.jetty.websocket.api.Session session) |
void |
onMessage(String msg) |
String |
receive(long timeout,
TimeUnit unit) |
public ConsumerSocket(CompletableFuture<Void> connected)
public boolean awaitClose(int duration,
TimeUnit unit)
throws InterruptedException
InterruptedException@OnWebSocketClose
public void onClose(int statusCode,
String reason)
@OnWebSocketConnect
public void onConnect(org.eclipse.jetty.websocket.api.Session session)
throws InterruptedException
InterruptedExceptionpublic org.eclipse.jetty.websocket.api.RemoteEndpoint getRemote()
public org.eclipse.jetty.websocket.api.Session getSession()
public void close()
Copyright © 2017–2021 Apache Software Foundation. All rights reserved.