|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
The PushConnectionManager provides access to PushConnection objects and
related functionality. There is only one PushConnectionManager
available in a Nexaweb enabled application. It may be obtained
from the static ServiceManager.getPushConnectionManager()
method.
| Method Summary | |
void |
addPushConnectionListener(PushConnectionListener listener)
Adds the specified listener to the list of listeners that will be notified when PushConnections are established or closed. |
void |
establishPushConnection(ServerSession session)
Request that a PushConnection be established for the specified Session. |
void |
establishPushConnection(java.lang.String sessionId)
Request that a PushConnection be established for the specified Session. |
PushConnection |
findById(java.lang.String sessionId)
Returns the PushConnection associated with the specified session id. |
PushConnection |
findBySession(ServerSession session)
Returns the PushConnection associated with the specified ServerSession. |
int |
getPushConnectionCount()
Returns the number of PushConnection objects under management. |
boolean |
removePushConnectionListener(PushConnectionListener listener)
Removes the specified listener to the list of listeners that will be notified when PushConnections are established or closed. |
| Methods inherited from interface com.nexaweb.server.services.Service |
getDescription, getLog, getName, getPerformanceMeter, getStatus, getStatusReport, start, stop |
| Method Detail |
public PushConnection findBySession(ServerSession session)
throws InvalidSessionException
session - The ServerSession for which a PushConnection is desired.
InvalidSessionException - Thrown if the specified ServerSession
is no longer valid.
public PushConnection findById(java.lang.String sessionId)
throws InvalidSessionException
sessionId - The id of a ServerSession for which a PushConnection is
desired.
InvalidSessionException - Thrown if the specified id does not
correspond to a valid ServerSession.
public void establishPushConnection(ServerSession session)
throws InvalidSessionException
session - The Server for which a PushConnection is desired.
InvalidSessionException - Thrown if the specified ServerSession
is no longer valid.
public void establishPushConnection(java.lang.String sessionId)
throws InvalidSessionException
sessionId - The id of a ServerSession for which a PushConnection is
desired.
InvalidSessionException - Thrown if the specified id does not
correspond to a valid ServerSession.public int getPushConnectionCount()
public void addPushConnectionListener(PushConnectionListener listener)
listener - The listener to be notified.public boolean removePushConnectionListener(PushConnectionListener listener)
listener - The listener that should no longer be notified.
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||