public class BoltResponseMessageWriter extends Object implements BoltResponseMessageHandler<IOException>
Neo4jPack.Packer.| Modifier and Type | Field and Description |
|---|---|
static BoltResponseMessageBoundaryHook |
NO_BOUNDARY_HOOK |
| Constructor and Description |
|---|
BoltResponseMessageWriter(Neo4jPack.Packer packer,
BoltResponseMessageBoundaryHook onMessageComplete) |
| Modifier and Type | Method and Description |
|---|---|
void |
flush() |
void |
onFailure(org.neo4j.kernel.api.exceptions.Status status,
String message) |
void |
onFatal(org.neo4j.kernel.api.exceptions.Status status,
String message) |
void |
onIgnored() |
void |
onRecord(Record item) |
void |
onSuccess(Map<String,Object> metadata) |
public static final BoltResponseMessageBoundaryHook NO_BOUNDARY_HOOK
public BoltResponseMessageWriter(Neo4jPack.Packer packer, BoltResponseMessageBoundaryHook onMessageComplete)
packer - serializer to output channelonMessageComplete - invoked for each message, after it's done writing to the outputpublic void onRecord(Record item) throws IOException
onRecord in interface BoltResponseMessageHandler<IOException>IOExceptionpublic void onSuccess(Map<String,Object> metadata) throws IOException
onSuccess in interface BoltResponseMessageHandler<IOException>IOExceptionpublic void onIgnored()
throws IOException
onIgnored in interface BoltResponseMessageHandler<IOException>IOExceptionpublic void onFailure(org.neo4j.kernel.api.exceptions.Status status,
String message)
throws IOException
onFailure in interface BoltResponseMessageHandler<IOException>IOExceptionpublic void onFatal(org.neo4j.kernel.api.exceptions.Status status,
String message)
throws IOException
onFatal in interface BoltResponseMessageHandler<IOException>IOExceptionpublic void flush()
throws IOException
IOExceptionCopyright © 2002–2017 The Neo4j Graph Database Project. All rights reserved.