Class CancelMessage (0.16.0)

public class CancelMessage extends BootstrapMessage

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

public static final int IDENTIFIER
Field Value
Type Description
int

Constructors

CancelMessage(ConnectionHandler connection)

public CancelMessage(ConnectionHandler connection)
Parameter
Name Description
connection ConnectionHandler

Methods

getConnectionId()

public int getConnectionId()
Returns
Type Description
int

getIdentifier()

protected String getIdentifier()

Used for logging.

Returns
Type Description
String
Overrides

getMessageName()

protected String getMessageName()

Used for logging.

Returns
Type Description
String
Overrides

getPayloadString()

protected String getPayloadString()

Used for logging.

Returns
Type Description
String
Overrides

getSecret()

public int getSecret()
Returns
Type Description
int

sendPayload()

protected void sendPayload()

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

Overrides Exceptions
Type Description
Exception