Class SimpleTestProducerSocket


  • @WebSocket(maxTextMessageSize=65536)
    public class SimpleTestProducerSocket
    extends java.lang.Object
    • Field Summary

      Fields 
      Modifier and Type Field Description
      static org.HdrHistogram.Recorder recorder  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean awaitClose​(int duration, java.util.concurrent.TimeUnit unit)  
      org.eclipse.jetty.websocket.api.RemoteEndpoint getRemote()  
      org.eclipse.jetty.websocket.api.Session getSession()  
      void onClose​(int statusCode, java.lang.String reason)  
      void onConnect​(org.eclipse.jetty.websocket.api.Session session)  
      void onMessage​(java.lang.String msg)  
      void sendMsg​(java.lang.String context, byte[] payloadData)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • recorder

        public static org.HdrHistogram.Recorder recorder
    • Constructor Detail

      • SimpleTestProducerSocket

        public SimpleTestProducerSocket()
    • Method Detail

      • awaitClose

        public boolean awaitClose​(int duration,
                                  java.util.concurrent.TimeUnit unit)
                           throws java.lang.InterruptedException
        Throws:
        java.lang.InterruptedException
      • onClose

        @OnWebSocketClose
        public void onClose​(int statusCode,
                            java.lang.String reason)
      • onConnect

        @OnWebSocketConnect
        public void onConnect​(org.eclipse.jetty.websocket.api.Session session)
                       throws java.lang.InterruptedException,
                              java.io.IOException,
                              com.google.gson.JsonParseException
        Throws:
        java.lang.InterruptedException
        java.io.IOException
        com.google.gson.JsonParseException
      • onMessage

        @OnWebSocketMessage
        public void onMessage​(java.lang.String msg)
                       throws com.google.gson.JsonParseException
        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​(java.lang.String context,
                            byte[] payloadData)
                     throws java.io.IOException,
                            com.google.gson.JsonParseException,
                            java.lang.InterruptedException,
                            java.util.concurrent.ExecutionException
        Throws:
        java.io.IOException
        com.google.gson.JsonParseException
        java.lang.InterruptedException
        java.util.concurrent.ExecutionException