@WebSocket(maxTextMessageSize=65536) public class SimpleTestProducerSocket extends Object
| Modifier and Type | Field and Description |
|---|---|
static org.HdrHistogram.Recorder |
recorder |
| Constructor and Description |
|---|
SimpleTestProducerSocket() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
awaitClose(int duration,
TimeUnit unit) |
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) |
void |
sendMsg(String context,
byte[] payloadData) |
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,
IOException,
com.google.gson.JsonParseException
InterruptedExceptionIOExceptioncom.google.gson.JsonParseException@OnWebSocketMessage public void onMessage(String msg) throws com.google.gson.JsonParseException
com.google.gson.JsonParseExceptionpublic org.eclipse.jetty.websocket.api.RemoteEndpoint getRemote()
public org.eclipse.jetty.websocket.api.Session getSession()
public void sendMsg(String context, byte[] payloadData) throws IOException, com.google.gson.JsonParseException, InterruptedException, ExecutionException
IOExceptioncom.google.gson.JsonParseExceptionInterruptedExceptionExecutionExceptionCopyright © 2017–2021 Apache Software Foundation. All rights reserved.