Class CancelMessage (0.5.1)

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
TypeDescription
int

Constructors

CancelMessage(ConnectionHandler connection)

public CancelMessage(ConnectionHandler connection)
Parameter
NameDescription
connectionConnectionHandler

Methods

getConnectionId()

public int getConnectionId()
Returns
TypeDescription
int

getIdentifier()

protected String getIdentifier()

Used for logging.

Returns
TypeDescription
String
Overrides

getMessageName()

protected String getMessageName()

Used for logging.

Returns
TypeDescription
String
Overrides

getPayloadString()

protected String getPayloadString()

Used for logging.

Returns
TypeDescription
String
Overrides

getSecret()

public int getSecret()
Returns
TypeDescription
int

sendPayload()

protected void sendPayload()

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

Overrides Exceptions
TypeDescription
Exception