| Package | Description |
|---|---|
| io.atomix.primitive |
Provides classes and interfaces for defining and managing primitive types.
|
| io.atomix.primitive.proxy |
Provides interfaces for operating on primitive services via Java proxies.
|
| io.atomix.primitive.session |
Provides classes and interfaces for managing primitive sessions.
|
| io.atomix.protocols.backup.session |
Provides a
SessionClient implementation for primary-backup. |
| Modifier and Type | Method and Description |
|---|---|
static PrimitiveState |
PrimitiveState.valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static PrimitiveState[] |
PrimitiveState.values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
| Modifier and Type | Method and Description |
|---|---|
void |
AbstractAsyncPrimitive.addStateChangeListener(Consumer<PrimitiveState> listener) |
default void |
DistributedPrimitive.addStateChangeListener(Consumer<PrimitiveState> listener)
Registers a listener to be called when the primitive's state changes.
|
void |
AbstractAsyncPrimitive.removeStateChangeListener(Consumer<PrimitiveState> listener) |
default void |
DistributedPrimitive.removeStateChangeListener(Consumer<PrimitiveState> listener)
Unregisters a previously registered listener to be called when the primitive's state changes.
|
| Modifier and Type | Method and Description |
|---|---|
PrimitiveState |
ProxyClient.getState()
Returns the session state.
|
PrimitiveState |
ProxySession.getState()
Returns the session state.
|
| Modifier and Type | Method and Description |
|---|---|
void |
ProxyClient.addStateChangeListener(Consumer<PrimitiveState> listener)
Registers a session state change listener.
|
void |
ProxySession.addStateChangeListener(Consumer<PrimitiveState> listener)
Registers a session state change listener.
|
void |
ProxyClient.removeStateChangeListener(Consumer<PrimitiveState> listener)
Removes a state change listener.
|
void |
ProxySession.removeStateChangeListener(Consumer<PrimitiveState> listener)
Removes a state change listener.
|
| Modifier and Type | Method and Description |
|---|---|
PrimitiveState |
SessionClient.getState()
Returns the session state.
|
| Modifier and Type | Method and Description |
|---|---|
void |
SessionClient.addStateChangeListener(Consumer<PrimitiveState> listener)
Registers a session state change listener.
|
void |
SessionClient.removeStateChangeListener(Consumer<PrimitiveState> listener)
Removes a state change listener.
|
| Modifier and Type | Method and Description |
|---|---|
PrimitiveState |
PrimaryBackupSessionClient.getState() |
| Modifier and Type | Method and Description |
|---|---|
void |
PrimaryBackupSessionClient.addStateChangeListener(Consumer<PrimitiveState> listener) |
void |
PrimaryBackupSessionClient.removeStateChangeListener(Consumer<PrimitiveState> listener) |
Copyright © 2013–2018. All rights reserved.