Class SimpleTestProducerSocket
java.lang.Object
org.apache.pulsar.proxy.socket.client.SimpleTestProducerSocket
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanawaitClose(int duration, TimeUnit unit) org.eclipse.jetty.websocket.api.RemoteEndpointorg.eclipse.jetty.websocket.api.SessionvoidvoidonConnect(org.eclipse.jetty.websocket.api.Session session) voidvoid
-
Field Details
-
recorder
public static org.HdrHistogram.Recorder recorder
-
-
Constructor Details
-
SimpleTestProducerSocket
public SimpleTestProducerSocket()
-
-
Method Details
-
awaitClose
- Throws:
InterruptedException
-
onClose
-
onConnect
@OnWebSocketConnect public void onConnect(org.eclipse.jetty.websocket.api.Session session) throws InterruptedException, IOException, com.google.gson.JsonParseException - Throws:
InterruptedExceptionIOExceptioncom.google.gson.JsonParseException
-
onMessage
- Throws:
com.google.gson.JsonParseException
-
getRemote
public org.eclipse.jetty.websocket.api.RemoteEndpoint getRemote() -
getSession
public org.eclipse.jetty.websocket.api.Session getSession() -
sendMsg
public void sendMsg(String context, byte[] payloadData) throws IOException, com.google.gson.JsonParseException, InterruptedException, ExecutionException - Throws:
IOExceptioncom.google.gson.JsonParseExceptionInterruptedExceptionExecutionException
-