public interface State<CONTEXT,MESSAGETYPE extends MessageType>
A state is guaranteed to only have one handle at a time, i.e. access is serialized.
| Modifier and Type | Method and Description |
|---|---|
State<?,?> |
handle(CONTEXT context,
Message<MESSAGETYPE> message,
MessageHolder outgoing)
Handle a message.
|
State<?,?> handle(CONTEXT context, Message<MESSAGETYPE> message, MessageHolder outgoing) throws Throwable
context - that contains state and methods to access other parts of the systemmessage - that needs to be handledoutgoing - processor for new messages created by the handling of this messageThrowableCopyright © 2002–2017 The Neo4j Graph Database Project. All rights reserved.