public interface SessionFactory<T>
| Modifier and Type | Method and Description |
|---|---|
T |
createSession(StatelessClientContext context,
String user,
SessionId id)
Creates a new session (data object), for a new session
initiated with the given creation context and on behalf of the
user with the given name, and assigned the given ID.
|
void |
removedSession(T session)
Notifies the receiver that the session associated with the
given session (data object) has been terminated.
|
T createSession(StatelessClientContext context, String user, SessionId id)
context - The context.user - The user name.id - The session ID.void removedSession(T session)
SessionHolder can be modified during a session, the argument
supplied to this method may not be the same object as returned
from createSession(StatelessClientContext,String,SessionId) for
the same session.session - The session (data object).Copyright © 2015. All Rights Reserved.