| Modifier and Type | Method and Description |
|---|---|
StateMachine |
StateMachines.getStateMachine(Class<? extends MessageType> messageType) |
boolean |
StateMachines.process(Message<? extends MessageType> message) |
| Modifier and Type | Method and Description |
|---|---|
void |
NetworkSender.process(List<Message<? extends MessageType>> messages) |
boolean |
NetworkSender.process(Message<? extends MessageType> message) |
| Modifier and Type | Class and Description |
|---|---|
class |
Message<MESSAGETYPE extends MessageType>
Message for state machines which can be sent out to instances in the cluster as well.
|
| Modifier and Type | Method and Description |
|---|---|
<MSGTYPE extends MessageType> |
Message.copyHeadersTo(Message<MSGTYPE> message,
String... names) |
static <MESSAGETYPE extends MessageType> |
Message.internal(MESSAGETYPE message) |
static <MESSAGETYPE extends MessageType> |
Message.internal(MESSAGETYPE message,
Object payload) |
static <MESSAGETYPE extends MessageType> |
Message.respond(MESSAGETYPE messageType,
Message<?> message,
Object payload) |
static <MESSAGETYPE extends MessageType> |
Message.timeout(MESSAGETYPE message,
Message<?> causedBy) |
static <MESSAGETYPE extends MessageType> |
Message.timeout(MESSAGETYPE message,
Message<?> causedBy,
Object payload) |
static <MESSAGETYPE extends MessageType> |
Message.to(MESSAGETYPE messageType,
URI to) |
static <MESSAGETYPE extends MessageType> |
Message.to(MESSAGETYPE messageType,
URI to,
Object payload) |
| Modifier and Type | Method and Description |
|---|---|
void |
MessageHolder.offer(Message<? extends MessageType> message) |
void |
MessageSender.process(List<Message<? extends MessageType>> message) |
boolean |
MessageProcessor.process(Message<? extends MessageType> message) |
| Modifier and Type | Method and Description |
|---|---|
Message<? extends MessageType> |
TimeoutsContext.cancelTimeout(Object key) |
| Modifier and Type | Method and Description |
|---|---|
long |
TimeoutsContext.getTimeoutFor(Message<? extends MessageType> timeoutMessage) |
void |
TimeoutsContext.setTimeout(Object key,
Message<? extends MessageType> timeoutMessage) |
| Modifier and Type | Class and Description |
|---|---|
class |
AcceptorMessage
Acceptor state machine messages
|
class |
AtomicBroadcastMessage
Messages for the AtomicBroadcast client API.
|
class |
LearnerMessage
Learner state machine messages
|
class |
ProposerMessage
Coordinator state machine messages
|
| Modifier and Type | Class and Description |
|---|---|
class |
ClusterMessage
Messages to implement the Cluster API state machine
|
| Modifier and Type | Class and Description |
|---|---|
class |
ElectionMessage
Messages used to implement the
ElectionState |
| Modifier and Type | Class and Description |
|---|---|
class |
HeartbeatMessage
Messages used by the
HeartbeatState state machine. |
| Modifier and Type | Method and Description |
|---|---|
boolean |
HeartbeatIAmAliveProcessor.process(Message<? extends MessageType> message) |
boolean |
HeartbeatRefreshProcessor.process(Message<? extends MessageType> message) |
| Modifier and Type | Class and Description |
|---|---|
class |
SnapshotMessage
TODO
|
| Modifier and Type | Interface and Description |
|---|---|
interface |
State<CONTEXT,MESSAGETYPE extends MessageType>
Implemented by states in a state machine.
|
| Modifier and Type | Method and Description |
|---|---|
Message<? extends MessageType> |
StateTransition.getMessage() |
Class<? extends MessageType> |
StateMachine.getMessageType() |
| Modifier and Type | Method and Description |
|---|---|
StateMachineRules |
StateMachineRules.rule(State<?,?> oldState,
MessageType messageType,
State<?,?> newState,
Message<?>... messages) |
| Modifier and Type | Method and Description |
|---|---|
void |
StateMachine.handle(Message<? extends MessageType> message,
MessageHolder outgoing) |
| Constructor and Description |
|---|
StateMachine(Object context,
Class<? extends MessageType> messageEnumType,
State<?,?> state,
org.neo4j.logging.LogProvider logProvider) |
StateTransition(State<?,?> oldState,
Message<? extends MessageType> message,
State<?,?> newState) |
| Modifier and Type | Method and Description |
|---|---|
Message<? extends MessageType> |
Timeouts.cancelTimeout(Object key)
Cancel a timeout corresponding to a particular key.
|
Message<? extends MessageType> |
Timeouts.Timeout.getTimeoutMessage() |
Message<? extends MessageType> |
Timeouts.getTimeoutMessage(String timeoutName) |
| Modifier and Type | Method and Description |
|---|---|
MessageTimeoutStrategy |
MessageTimeoutStrategy.relativeTimeout(MessageType messageType,
MessageType relativeTo,
long timeout) |
MessageTimeoutStrategy |
MessageTimeoutStrategy.timeout(MessageType messageType,
long timeout) |
| Modifier and Type | Method and Description |
|---|---|
long |
Timeouts.getTimeoutFor(Message<? extends MessageType> timeoutMessage) |
void |
Timeouts.setTimeout(Object key,
Message<? extends MessageType> timeoutMessage)
Add a new timeout to the list
If this is not cancelled it will trigger a message on the message processor
|
| Constructor and Description |
|---|
Timeout(long timeout,
Message<? extends MessageType> timeoutMessage) |
Copyright © 2002–2017 The Neo4j Graph Database Project. All rights reserved.