java.lang.Object
org.neo4j.driver.internal.messaging.request.ResetMessage
All Implemented Interfaces:
Message

public class ResetMessage extends Object implements Message
RESET request message

Sent by clients to reset a session to a clean state - closing any open transaction or result streams. This also acknowledges receipt of failures sent by the server. This is required to allow optimistic sending of multiple messages before responses have been received - pipelining.

When something goes wrong, we want the server to stop processing our already sent messages, but the server cannot tell the difference between what was sent before and after we saw the error.

This message acts as a barrier after an error, informing the server that we've seen the error message, and that messages that follow this one are safe to execute.