|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface ClientSessionService
The client session service manages client sessions.
| Method Summary | |
|---|---|
void |
addSessionStatusListener(ClientSessionStatusListener listener)
Adds the specified status listener to be notified when a local session disconnects or is being prepared to relocate. |
SessionProtocol |
getSessionProtocol(BigInteger sessionRefId)
Returns a protocol for the local client session with the specified sessionRefId or null if the specified
client session is not connected to the local node. |
boolean |
isRelocatingToLocalNode(BigInteger sessionRefId)
Returns true if the session with the specified sessionRefId is known to be relocating to the local node, and
returns false otherwise. |
| Methods inherited from interface com.sun.sgs.service.Service |
|---|
getName, ready, shutdown |
| Method Detail |
|---|
void addSessionStatusListener(ClientSessionStatusListener listener)
listener - a listener to notify when a session disconnects or
is being prepared to relocate
IllegalStateException - if this method is invoked from a
transactional contextSessionProtocol getSessionProtocol(BigInteger sessionRefId)
sessionRefId or null if the specified
client session is not connected to the local node.
The sessionRefId is the ID obtained by invoking getId on a ManagedReference to the
associated ClientSession.
This method is non-transactional. However, the method may be
invoked inside or outside of a transaction. The SessionProtocol returned from this method is used to communicate
with a client, so it should only be used outside of a transaction.
sessionRefId - a client session ID, as a BigInteger
null
IllegalStateException - if this method is invoked from a
transactional contextboolean isRelocatingToLocalNode(BigInteger sessionRefId)
true if the session with the specified sessionRefId is known to be relocating to the local node, and
returns false otherwise.
sessionRefId - a client session ID, as a BigInteger
true if the session with the specified sessionRefId is known to be relocating to the local node,
and returns false otherwise
|
RedDwarf, Version 0.10.1 2010-03-14 10:56:12 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||