Class JavaxWebSocketContainer

    • Constructor Detail

    • Method Detail

      • getExecutor

        public abstract java.util.concurrent.Executor getExecutor()
      • getDefaultAsyncSendTimeout

        public long getDefaultAsyncSendTimeout()
        Specified by:
        getDefaultAsyncSendTimeout in interface javax.websocket.WebSocketContainer
      • getDefaultMaxBinaryMessageBufferSize

        public int getDefaultMaxBinaryMessageBufferSize()
        Specified by:
        getDefaultMaxBinaryMessageBufferSize in interface javax.websocket.WebSocketContainer
      • getDefaultMaxSessionIdleTimeout

        public long getDefaultMaxSessionIdleTimeout()
        Specified by:
        getDefaultMaxSessionIdleTimeout in interface javax.websocket.WebSocketContainer
      • getDefaultMaxTextMessageBufferSize

        public int getDefaultMaxTextMessageBufferSize()
        Specified by:
        getDefaultMaxTextMessageBufferSize in interface javax.websocket.WebSocketContainer
      • setAsyncSendTimeout

        public void setAsyncSendTimeout​(long ms)
        Specified by:
        setAsyncSendTimeout in interface javax.websocket.WebSocketContainer
      • setDefaultMaxBinaryMessageBufferSize

        public void setDefaultMaxBinaryMessageBufferSize​(int max)
        Specified by:
        setDefaultMaxBinaryMessageBufferSize in interface javax.websocket.WebSocketContainer
      • setDefaultMaxSessionIdleTimeout

        public void setDefaultMaxSessionIdleTimeout​(long ms)
        Specified by:
        setDefaultMaxSessionIdleTimeout in interface javax.websocket.WebSocketContainer
      • setDefaultMaxTextMessageBufferSize

        public void setDefaultMaxTextMessageBufferSize​(int max)
        Specified by:
        setDefaultMaxTextMessageBufferSize in interface javax.websocket.WebSocketContainer
      • getInstalledExtensions

        public java.util.Set<javax.websocket.Extension> getInstalledExtensions()
        Specified by:
        getInstalledExtensions in interface javax.websocket.WebSocketContainer
        Since:
        JSR356 v1.0
        See Also:
        WebSocketContainer.getInstalledExtensions()
      • getOpenSessions

        public java.util.Set<javax.websocket.Session> getOpenSessions()
        Used in Session.getOpenSessions()
        Returns:
        the set of open sessions
      • addSessionListener

        public void addSessionListener​(JavaxWebSocketSessionListener listener)
        Register a WebSocketSessionListener with the container
        Parameters:
        listener - the listener
      • removeSessionListener

        public boolean removeSessionListener​(JavaxWebSocketSessionListener listener)
        Remove a WebSocketSessionListener from the container
        Parameters:
        listener - the listener
        Returns:
        true if listener was present and removed
      • notifySessionListeners

        public void notifySessionListeners​(java.util.function.Consumer<JavaxWebSocketSessionListener> consumer)
        Notify Session Listeners of events
        Parameters:
        consumer - the consumer to pass to each listener