| Package | Description |
|---|---|
| io.atomix.primitive.service | |
| io.atomix.primitive.session |
Interfaces for managing client sessions on a Raft server.
|
| Modifier and Type | Method and Description |
|---|---|
Session |
ServiceContext.currentSession()
Returns the current session.
|
Session |
Commit.session()
Returns the session that submitted the operation.
|
| Modifier and Type | Method and Description |
|---|---|
void |
AbstractPrimitiveService.onClose(Session session) |
void |
AbstractPrimitiveService.onExpire(Session session) |
void |
AbstractPrimitiveService.onOpen(Session session) |
| Modifier and Type | Method and Description |
|---|---|
Session |
Sessions.getSession(long sessionId)
Returns a session by session ID.
|
| Modifier and Type | Method and Description |
|---|---|
void |
SessionListener.onClose(Session session)
Called when a session was closed by the client.
|
void |
SessionListener.onExpire(Session session)
Called when a session is expired by the system.
|
void |
SessionListener.onOpen(Session session)
Called when a new session is registered.
|
| Constructor and Description |
|---|
SessionEvent(SessionEvent.Type type,
Session subject) |
SessionEvent(SessionEvent.Type type,
Session subject,
long time) |
Copyright © 2013–2018. All rights reserved.