| Package | Description |
|---|---|
| io.atomix.primitive.service |
Provides classes and interfaces for defining distributed primitive state machines.
|
| io.atomix.primitive.session |
Provides classes and interfaces for managing primitive sessions.
|
| io.atomix.protocols.backup.session |
Provides a
SessionClient implementation for primary-backup. |
| io.atomix.protocols.raft.session |
Provides a
Session implementation for the Raft consensus protocol. |
| Modifier and Type | Method and Description |
|---|---|
void |
AbstractPrimitiveService.close(SessionId sessionId) |
void |
PrimitiveService.close(SessionId sessionId)
Closes the session with the given identifier.
|
void |
AbstractPrimitiveService.expire(SessionId sessionId) |
void |
PrimitiveService.expire(SessionId sessionId)
Expires the session with the given identifier.
|
| Modifier and Type | Method and Description |
|---|---|
static SessionId |
SessionId.from(long id)
Returns a new session ID from the given identifier.
|
SessionId |
SessionMetadata.sessionId()
Returns the globally unique session identifier.
|
SessionId |
Session.sessionId()
Returns the session identifier.
|
SessionId |
SessionClient.sessionId()
Returns the proxy session identifier.
|
| Modifier and Type | Method and Description |
|---|---|
CompletableFuture<SessionId> |
SessionIdService.nextSessionId()
Returns the next unique session identifier.
|
| Modifier and Type | Method and Description |
|---|---|
SessionId |
PrimaryBackupSessionClient.sessionId() |
| Constructor and Description |
|---|
PrimaryBackupSessionClient(String clientName,
PartitionId partitionId,
SessionId sessionId,
PrimitiveType primitiveType,
io.atomix.protocols.backup.protocol.PrimitiveDescriptor descriptor,
ClusterMembershipService clusterMembershipService,
io.atomix.protocols.backup.protocol.PrimaryBackupClientProtocol protocol,
PrimaryElection primaryElection,
io.atomix.utils.concurrent.ThreadContext threadContext) |
| Modifier and Type | Method and Description |
|---|---|
RaftSession |
RaftSessionRegistry.getSession(SessionId sessionId)
Gets a session by session ID.
|
RaftSession |
RaftSessionRegistry.removeSession(SessionId sessionId)
Closes a session.
|
| Constructor and Description |
|---|
RaftSession(SessionId sessionId,
MemberId member,
String name,
PrimitiveType primitiveType,
ReadConsistency readConsistency,
long minTimeout,
long maxTimeout,
long lastUpdated,
Serializer serializer,
RaftServiceContext context,
io.atomix.protocols.raft.impl.RaftContext server,
io.atomix.utils.concurrent.ThreadContextFactory threadContextFactory) |
Copyright © 2013–2018. All rights reserved.