| Package | Description |
|---|---|
| io.atomix.primitive |
Provides classes and interfaces for defining and managing primitive types.
|
| io.atomix.primitive.service |
Provides classes and interfaces for defining distributed primitive state machines.
|
| io.atomix.protocols.raft.service |
Provides classes for managing Raft-based primitive services.
|
| io.atomix.protocols.raft.session |
Provides a
Session implementation for the Raft consensus protocol. |
| Modifier and Type | Method and Description |
|---|---|
static PrimitiveId |
PrimitiveId.from(long id)
Creates a snapshot ID from the given number.
|
static PrimitiveId |
PrimitiveId.from(String id)
Creates a snapshot ID from the given string.
|
| Modifier and Type | Method and Description |
|---|---|
PrimitiveId |
ServiceContext.serviceId()
Returns the state machine identifier.
|
| Modifier and Type | Method and Description |
|---|---|
PrimitiveId |
RaftServiceContext.serviceId() |
| Constructor and Description |
|---|
RaftServiceContext(PrimitiveId primitiveId,
String serviceName,
PrimitiveType primitiveType,
ServiceConfig config,
PrimitiveService service,
io.atomix.protocols.raft.impl.RaftContext raft,
io.atomix.utils.concurrent.ThreadContextFactory threadContextFactory) |
| Modifier and Type | Method and Description |
|---|---|
Collection<RaftSession> |
RaftSessionRegistry.getSessions(PrimitiveId primitiveId)
Returns a set of sessions associated with the given service.
|
void |
RaftSessionRegistry.removeSessions(PrimitiveId primitiveId)
Removes all sessions registered for the given service.
|
Copyright © 2013–2018. All rights reserved.