public class ConnectedFeeds extends Object
| Constructor and Description |
|---|
ConnectedFeeds() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
addSession(String feedId,
javax.websocket.Session newSession)
Adds the given session and associates it with the given feed ID.
|
Set<String> |
getAllFeeds() |
Set<javax.websocket.Session> |
getAllSessions() |
javax.websocket.Session |
getSession(String feedId) |
int |
getTotalSessions() |
void |
initialize() |
javax.websocket.Session |
removeSession(String feedId,
javax.websocket.Session doomedSession)
Removes the session associated with the given feed ID.
|
@PostConstruct public void initialize()
public int getTotalSessions()
public javax.websocket.Session getSession(String feedId)
public Set<javax.websocket.Session> getAllSessions()
public boolean addSession(String feedId, javax.websocket.Session newSession)
feedId - the feed ID that will be associated wit the new sessionnewSession - the new session to addpublic javax.websocket.Session removeSession(String feedId, javax.websocket.Session doomedSession)
feedId - identifies the session to be removeddoomedSession - if not null, ensures that only this session will be removedCopyright © 2015 Red Hat, Inc.. All rights reserved.