Class AbstractJsrRemote

  • All Implemented Interfaces:
    javax.websocket.RemoteEndpoint
    Direct Known Subclasses:
    JsrAsyncRemote, JsrBasicRemote

    public abstract class AbstractJsrRemote
    extends java.lang.Object
    implements javax.websocket.RemoteEndpoint
    • Constructor Detail

      • AbstractJsrRemote

        protected AbstractJsrRemote​(JsrSession session)
    • Method Detail

      • assertMessageNotNull

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

        protected void assertSendHandlerNotNull​(javax.websocket.SendHandler handler)
      • 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
      • sendObjectViaFuture

        public java.util.concurrent.Future<java.lang.Void> sendObjectViaFuture​(java.lang.Object data)
      • 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