Class JsrSessionTracker

    • Constructor Detail

      • JsrSessionTracker

        public JsrSessionTracker()
    • Method Detail

      • getSessions

        public java.util.Set<javax.websocket.Session> getSessions()
      • doStop

        protected void doStop()
                       throws java.lang.Exception
        Overrides:
        doStop in class AbstractLifeCycle
        Throws:
        java.lang.Exception
      • getNumSessions

        @ManagedAttribute("Total number of active WebSocket Sessions")
        public int getNumSessions()
      • dump

        public void dump​(java.lang.Appendable out,
                         java.lang.String indent)
                  throws java.io.IOException
        Description copied from interface: Dumpable
        Dump this object (and children) into an Appendable using the provided indent after any new lines. The indent should not be applied to the first object dumped.
        Specified by:
        dump in interface Dumpable
        Parameters:
        out - The appendable to dump to
        indent - The indent to apply after any new lines.
        Throws:
        java.io.IOException - if unable to write to Appendable