| Package | Description |
|---|---|
| io.atomix.primitive.event |
Provides interfaces for defining distributed primitive events.
|
| 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 EventType |
EventType.canonical(EventType eventType)
Simplifies the given event type.
|
default EventType |
EventType.canonicalize()
Returns an identical event type in canonical form.
|
static EventType |
EventType.from(String name)
Creates a new Raft event identifier.
|
EventType |
PrimitiveEvent.type()
Returns the event type identifier.
|
| Modifier and Type | Method and Description |
|---|---|
static Map<EventType,Method> |
Events.getEventMap(Class<?> serviceInterface)
Returns the collection of events provided by the given service interface.
|
static Map<Method,EventType> |
Events.getMethodMap(Class<?> serviceInterface)
Returns the collection of events provided by the given service interface.
|
| Modifier and Type | Method and Description |
|---|---|
static EventType |
EventType.canonical(EventType eventType)
Simplifies the given event type.
|
static PrimitiveEvent |
PrimitiveEvent.event(EventType eventType)
Creates a new primitive event.
|
static PrimitiveEvent |
PrimitiveEvent.event(EventType eventType,
byte[] value)
Creates a new primitive event.
|
| Constructor and Description |
|---|
PrimitiveEvent(EventType type,
byte[] value) |
| Modifier and Type | Method and Description |
|---|---|
void |
SessionClient.addEventListener(EventType eventType,
Consumer<PrimitiveEvent> listener)
Adds an event listener.
|
default void |
Session.publish(EventType eventType)
Publishes an empty event to the session.
|
<T> void |
Session.publish(EventType eventType,
T event)
Publishes an event to the session.
|
void |
SessionClient.removeEventListener(EventType eventType,
Consumer<PrimitiveEvent> listener)
Removes an event listener.
|
| Modifier and Type | Method and Description |
|---|---|
void |
PrimaryBackupSessionClient.addEventListener(EventType eventType,
Consumer<PrimitiveEvent> listener) |
void |
PrimaryBackupSessionClient.removeEventListener(EventType eventType,
Consumer<PrimitiveEvent> listener) |
Copyright © 2013–2018. All rights reserved.