Class JavaxWebSocketRemoteEndpoint

    • Field Detail

      • batch

        protected boolean batch
      • messageType

        protected byte messageType
    • Method Detail

      • flushBatch

        public void flushBatch()
                        throws java.io.IOException
        Specified by:
        flushBatch in interface javax.websocket.RemoteEndpoint
        Throws:
        java.io.IOException
      • getBatchingAllowed

        public boolean getBatchingAllowed()
        Specified by:
        getBatchingAllowed in interface javax.websocket.RemoteEndpoint
      • setBatchingAllowed

        public void setBatchingAllowed​(boolean allowed)
                                throws java.io.IOException
        Specified by:
        setBatchingAllowed in interface javax.websocket.RemoteEndpoint
        Throws:
        java.io.IOException
      • getIdleTimeout

        public long getIdleTimeout()
      • setIdleTimeout

        public void setIdleTimeout​(long ms)
      • getWriteTimeout

        public long getWriteTimeout()
      • setWriteTimeout

        public void setWriteTimeout​(long ms)
      • sendFrame

        public void sendFrame​(Frame frame,
                              Callback callback,
                              boolean batch)
        Description copied from interface: OutgoingFrames
        A frame, and optional callback, intended for the network layer.

        Note: the frame can undergo many transformations in the various layers and extensions present in the implementation.

        If you are implementing a mutation, you are obliged to handle the incoming WriteCallback appropriately.

        Specified by:
        sendFrame in interface OutgoingFrames
        Parameters:
        frame - the frame to eventually write to the network layer.
        callback - the callback to notify when the frame is written.
        batch - the batch mode requested by the sender.
      • sendObject

        public void sendObject​(java.lang.Object data,
                               Callback callback)
                        throws java.io.IOException,
                               javax.websocket.EncodeException
        Throws:
        java.io.IOException
        javax.websocket.EncodeException
      • sendPing

        public void sendPing​(java.nio.ByteBuffer data)
                      throws java.io.IOException,
                             java.lang.IllegalArgumentException
        Specified by:
        sendPing in interface javax.websocket.RemoteEndpoint
        Throws:
        java.io.IOException
        java.lang.IllegalArgumentException
      • sendPong

        public void sendPong​(java.nio.ByteBuffer data)
                      throws java.io.IOException,
                             java.lang.IllegalArgumentException
        Specified by:
        sendPong in interface javax.websocket.RemoteEndpoint
        Throws:
        java.io.IOException
        java.lang.IllegalArgumentException
      • assertMessageNotNull

        protected void assertMessageNotNull​(java.lang.Object data)
      • assertSendHandlerNotNull

        protected void assertSendHandlerNotNull​(javax.websocket.SendHandler handler)