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.
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()
public String getIdentifier()
Used for logging.
Returns | |
---|---|
Type | Description |
String |
getMessageName()
protected String getMessageName()
Used for logging.
Returns | |
---|---|
Type | Description |
String |
getPayloadString()
protected String getPayloadString()
Used for logging.
Returns | |
---|---|
Type | Description |
String |
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.
Exceptions | |
---|---|
Type | Description |
Exception |