|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface ClientSessionStatusListener
A listener that services may register with the ClientSessionService
to receive notification of local client session status changes such as
disconnection or relocation.
ClientSessionService.addSessionStatusListener(com.sun.sgs.service.ClientSessionStatusListener)| Method Summary | |
|---|---|
void |
disconnected(BigInteger sessionRefId,
boolean isRelocating)
Notifies this listener that the session with the given sessionRefId has disconnected so that any relevant cached or
persistent data associated with the client session can be cleaned
up. |
void |
prepareToRelocate(BigInteger sessionRefId,
long newNodeId,
SimpleCompletionHandler handler)
Notifies this listener that the session with the given sessionRefId is relocating to the node with the
specified nodeId. |
void |
relocated(BigInteger sessionRefId)
Notifies this listener that the session with the given sessionRefId has completed relocation to the local
node, so that this listener can communicate with the
relocated client session (e.g. |
| Method Detail |
|---|
void disconnected(BigInteger sessionRefId,
boolean isRelocating)
sessionRefId has disconnected so that any relevant cached or
persistent data associated with the client session can be cleaned
up.
sessionRefId - the client session IDisRelocating - if true, the disconnection is due to
the client session relocating to another node
void prepareToRelocate(BigInteger sessionRefId,
long newNodeId,
SimpleCompletionHandler handler)
sessionRefId is relocating to the node with the
specified nodeId. This notification gives the
service associated with this listener an opportunity to
prepare for the relocation. The associated service should
invoke the completed method of the specified handler when it
has completed preparing for the relocation.
sessionRefId - the client session IDnewNodeId - the ID of the new nodehandler - a handler to notify when preparation is completevoid relocated(BigInteger sessionRefId)
sessionRefId has completed relocation to the local
node, so that this listener can communicate with the
relocated client session (e.g. to deliver enqueued
requests) if needed.
sessionRefId - the client session ID
|
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 | |||||||||