Class MemoryWebsocketSessions

java.lang.Object
java.util.AbstractMap<K,V>
java.util.concurrent.ConcurrentHashMap<String,javax.websocket.Session>
org.openremote.container.web.socket.MemoryWebsocketSessions
All Implemented Interfaces:
Serializable, ConcurrentMap<String,javax.websocket.Session>, Map<String,javax.websocket.Session>, org.apache.camel.Service, WebsocketSessions

public class MemoryWebsocketSessions extends ConcurrentHashMap<String,javax.websocket.Session> implements WebsocketSessions
See Also:
  • Constructor Details

    • MemoryWebsocketSessions

      public MemoryWebsocketSessions()
  • Method Details

    • add

      public void add(javax.websocket.Session websocketSession)
      Specified by:
      add in interface WebsocketSessions
    • remove

      public void remove(javax.websocket.Session websocketSession)
      Specified by:
      remove in interface WebsocketSessions
    • get

      public javax.websocket.Session get(String sessionId)
      Specified by:
      get in interface WebsocketSessions
    • getAll

      public Collection<javax.websocket.Session> getAll()
      Specified by:
      getAll in interface WebsocketSessions
    • start

      public void start() throws Exception
      Specified by:
      start in interface org.apache.camel.Service
      Throws:
      Exception
    • stop

      public void stop() throws Exception
      Specified by:
      stop in interface org.apache.camel.Service
      Throws:
      Exception