Class AbstractEventDriver

    • Constructor Detail

      • AbstractEventDriver

        public AbstractEventDriver​(WebSocketPolicy policy,
                                   java.lang.Object websocket)
    • Method Detail

      • appendMessage

        protected void appendMessage​(java.nio.ByteBuffer buffer,
                                     boolean fin)
                              throws java.io.IOException
        Throws:
        java.io.IOException
      • dispatch

        protected void dispatch​(java.lang.Runnable runnable)
      • incomingFrame

        public void incomingFrame​(Frame frame)
        Description copied from interface: IncomingFrames
        Process the incoming frame.

        Note: if you need to hang onto any information from the frame, be sure to copy it, as the information contained in the Frame will be released and/or reused by the implementation.

        Specified by:
        incomingFrame in interface IncomingFrames
        Parameters:
        frame - the frame to process
      • onContinuationFrame

        public void onContinuationFrame​(java.nio.ByteBuffer buffer,
                                        boolean fin)
                                 throws java.io.IOException
        Specified by:
        onContinuationFrame in interface EventDriver
        Throws:
        java.io.IOException
      • onPong

        public void onPong​(java.nio.ByteBuffer buffer)
        Specified by:
        onPong in interface EventDriver
      • onPing

        public void onPing​(java.nio.ByteBuffer buffer)
        Specified by:
        onPing in interface EventDriver