|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
The interface for coordinating the joining and releasing of session participants to and from their sessions.
Method Summary | |
SessionManager |
getSessionManager()
Returns a reference to the SessionManager that is
being used for creating, retrieving and terminating sessions. |
void |
join(SessionParticipant participant)
Joins the specified session participant to a session that matches its requirments. |
void |
release(SessionParticipant participant)
Releases the specified session participant from the session to which it is joined. |
Method Detail |
public void join(SessionParticipant participant) throws SessionNotFoundException, SessionJoinDeniedException, SessionJoinException
A session participant encapsulates its requirements inside the
SessionStrategy
object returned by its
createSessionStrategy
method.
After this method returns the session participant will be able to interact with the session that it has joined.
participant
- The SessionParticipant
.
SessionNotFoundException
- if the session specified by the
participant does not exist.
SessionJoinDeniedException
- if there is an
application-specific reason why the participant is not allowed
to join.
SessionJoinException
- if there is an internal problem that
occurs during the join.
java.lang.IllegalArgumentException
- if participant
is
null
.public void release(SessionParticipant participant) throws SessionNotFoundException, SessionReleaseException
This should be invoked when the session participant has no further need to interact with the session.
participant
- the SessionParticipant
to release
SessionNotFoundException
- if the session specified by the
participant does not exist.
SessionReleaseException
- if there is an internal problem that
occurs during the release.
java.lang.IllegalArgumentException
- if participant
is
null
.public SessionManager getSessionManager()
SessionManager
that is
being used for creating, retrieving and terminating sessions.
SessionManager
.
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |