public static enum BoltStateMachine.State extends Enum<BoltStateMachine.State>
| Enum Constant and Description |
|---|
CONNECTED
Following the socket connection and a small handshake exchange to
establish protocol version, the machine begins in the CONNECTED
state.
|
FAILED
The FAILED state occurs when a recoverable error is encountered.
|
INTERRUPTED
If the state machine has been INTERRUPTED then a RESET message
has entered the queue and is waiting to be processed.
|
READY
The READY state indicates that the connection is ready to accept a
new RUN request.
|
STREAMING
When STREAMING, a result is available as a stream of records.
|
| Modifier and Type | Method and Description |
|---|---|
BoltStateMachine.State |
ackFailure(BoltStateMachine machine) |
BoltStateMachine.State |
discardAll(BoltStateMachine machine) |
BoltStateMachine.State |
init(BoltStateMachine machine,
String userAgent,
Map<String,Object> authToken) |
BoltStateMachine.State |
interrupt(BoltStateMachine machine) |
BoltStateMachine.State |
pullAll(BoltStateMachine machine) |
BoltStateMachine.State |
reset(BoltStateMachine machine) |
BoltStateMachine.State |
run(BoltStateMachine machine,
String statement,
org.neo4j.values.virtual.MapValue params) |
static BoltStateMachine.State |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static BoltStateMachine.State[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final BoltStateMachine.State CONNECTED
public static final BoltStateMachine.State READY
public static final BoltStateMachine.State STREAMING
public static final BoltStateMachine.State FAILED
public static final BoltStateMachine.State INTERRUPTED
public static BoltStateMachine.State[] values()
for (BoltStateMachine.State c : BoltStateMachine.State.values()) System.out.println(c);
public static BoltStateMachine.State valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is nullpublic BoltStateMachine.State init(BoltStateMachine machine, String userAgent, Map<String,Object> authToken) throws BoltConnectionFatality
BoltConnectionFatalitypublic BoltStateMachine.State ackFailure(BoltStateMachine machine) throws BoltConnectionFatality
BoltConnectionFatalitypublic BoltStateMachine.State interrupt(BoltStateMachine machine) throws BoltConnectionFatality
BoltConnectionFatalitypublic BoltStateMachine.State reset(BoltStateMachine machine) throws BoltConnectionFatality
BoltConnectionFatalitypublic BoltStateMachine.State run(BoltStateMachine machine, String statement, org.neo4j.values.virtual.MapValue params) throws BoltConnectionFatality
BoltConnectionFatalitypublic BoltStateMachine.State discardAll(BoltStateMachine machine) throws BoltConnectionFatality
BoltConnectionFatalitypublic BoltStateMachine.State pullAll(BoltStateMachine machine) throws BoltConnectionFatality
BoltConnectionFatalityCopyright © 2002–2018 The Neo4j Graph Database Project. All rights reserved.