Class CancelMessage (0.27.1)

publicclassCancelMessageextendsBootstrapMessage

This message handles the imperative cancellation, as issues in a new connection by the PG wire protocol. We expect that this message contains an ID for the connection which issues the original query, as well as an auth secret.

Inheritance

java.lang.Object > WireMessage > BootstrapMessage > CancelMessage

Static Fields

IDENTIFIER

publicstaticfinalintIDENTIFIER
Field Value
TypeDescription
int

Constructors

CancelMessage(ConnectionHandler connection)

publicCancelMessage(ConnectionHandlerconnection)
Parameter
NameDescription
connectionConnectionHandler

Methods

getConnectionId()

publicintgetConnectionId()
Returns
TypeDescription
int

getIdentifier()

publicStringgetIdentifier()

Used for logging.

Returns
TypeDescription
String
Overrides

getMessageName()

protectedStringgetMessageName()

Used for logging.

Returns
TypeDescription
String
Overrides

getPayloadString()

protectedStringgetPayloadString()

Used for logging.

Returns
TypeDescription
String
Overrides

getSecret()

publicintgetSecret()
Returns
TypeDescription
int

sendPayload()

protectedvoidsendPayload()

Override this method to include post-processing and metadata in the sending process. Template method for send.

Overrides
Exceptions
TypeDescription
Exception