| Package | Description |
|---|---|
| com.amadeus.session |
Contains classes that provide generic session management including remote
storage.
|
| com.amadeus.session.repository.inmemory |
Implements in-memory session repository.
|
| com.amadeus.session.repository.redis |
Implements Redis based session repository.
|
| Modifier and Type | Method and Description |
|---|---|
SessionData |
RepositoryBackedSession.getSessionData()
Returns descriptor of this session (see
SessionData). |
SessionData |
SessionRepository.getSessionData(String id)
Retrieves global session data from repository.
|
| Modifier and Type | Method and Description |
|---|---|
RepositoryBackedSession |
SessionFactory.build(SessionData sessionData)
Builds instance of session based on passed
SessionData. |
RepositoryBackedSession |
DefaultSessionFactory.build(SessionData sessionData) |
Set<String> |
SessionRepository.getAllKeys(SessionData sessionData)
Get all attribute keys stored in the session.
|
Object |
SessionRepository.getSessionAttribute(SessionData sessionData,
String attribute)
Returns value of the attribute or
null if attribute or session
have not been found |
protected RepositoryBackedSession |
DefaultSessionFactory.newSessionObject(SessionData sessionData)
Creates new memory representation of session based on session data.
|
boolean |
SessionRepository.prepareRemove(SessionData session)
Prepares session repository for removal of session.
|
void |
SessionRepository.remove(SessionData sessionData)
Removes session from the repository.
|
void |
SessionManager.remove(SessionData sessionData) |
void |
SessionRepository.removeSessionAttribute(SessionData sessionData,
String name)
The attribute for the session will be removed from the repository.
|
void |
SessionRepository.sessionIdChange(SessionData sessionData)
Called by session manager to notify repository that session id has changed.
|
void |
SessionFactory.sessionIdChange(SessionData sessionData)
Called by session manager to notify session factory that session id has
changed.
|
void |
DefaultSessionFactory.sessionIdChange(SessionData sessionData) |
void |
SessionRepository.setSessionAttribute(SessionData sessionData,
String name,
Object value)
Sets the value of the attribute for the session in the repository.
|
SessionRepository.CommitTransaction |
SessionRepository.startCommit(SessionData sessionData)
Starts transaction on remote session.
|
void |
SessionRepository.storeSessionData(SessionData sessionData)
Stores global session data into repository
|
| Constructor and Description |
|---|
RepositoryBackedSession(SessionData sessionData,
SessionManager manager,
SessionFactory factory)
Creates session based on given
SessionData using
SessionManager to manage lifecycle of session. |
| Modifier and Type | Method and Description |
|---|---|
SessionData |
InMemoryRepository.getSessionData(String id) |
| Modifier and Type | Method and Description |
|---|---|
Set<String> |
InMemoryRepository.getAllKeys(SessionData session) |
Object |
InMemoryRepository.getSessionAttribute(SessionData session,
String attribute) |
boolean |
InMemoryRepository.prepareRemove(SessionData session) |
void |
InMemoryRepository.remove(SessionData session) |
void |
InMemoryRepository.removeSessionAttribute(SessionData session,
String name) |
void |
InMemoryRepository.sessionIdChange(SessionData sessionData) |
void |
InMemoryRepository.setSessionAttribute(SessionData session,
String name,
Object value) |
SessionRepository.CommitTransaction |
InMemoryRepository.startCommit(SessionData session) |
void |
InMemoryRepository.storeSessionData(SessionData sessionData) |
| Modifier and Type | Method and Description |
|---|---|
SessionData |
RedisSessionRepository.getSessionData(String id)
This method retrieves session data from repository.
|
| Modifier and Type | Method and Description |
|---|---|
Set<String> |
RedisSessionRepository.getAllKeys(SessionData session)
Retrieves all attribute keys associated with session.
|
Object |
RedisSessionRepository.getSessionAttribute(SessionData session,
String attribute) |
boolean |
RedisSessionRepository.prepareRemove(SessionData session) |
void |
RedisSessionRepository.remove(SessionData session) |
void |
RedisSessionRepository.removeSessionAttribute(SessionData session,
String name) |
void |
RedisSessionRepository.sessionIdChange(SessionData sessionData)
Changes session id.
|
void |
RedisSessionRepository.setSessionAttribute(SessionData session,
String name,
Object value) |
SessionRepository.CommitTransaction |
RedisSessionRepository.startCommit(SessionData session) |
void |
RedisSessionRepository.storeSessionData(SessionData sessionData)
The method stores session metadata in redis and marks session as accessed
(resets session expire instant).
|
Copyright © 2018 Amadeus s.a.s.. All rights reserved.