Class CloseMessage (0.27.1)

public class CloseMessage extends ControlMessage

Close the designated statement.

Inheritance

java.lang.Object > WireMessage > ControlMessage > CloseMessage

Static Fields

IDENTIFIER

protected static final char IDENTIFIER
Field Value
Type Description
char

Constructors

CloseMessage(ConnectionHandler connection)

public CloseMessage(ConnectionHandler connection)
Parameter
Name Description
connection ConnectionHandler

Methods

getHeaderLength()

protected int getHeaderLength()

How many bytes is taken by the payload header. Header is defined here as protocol definition + length. Most common value here is four bytes, so we keep that as default. Effectively, this is how much of the message you "don't" want to read from the message's total length with readAll.

Returns
Type Description
int
Overrides

getIdentifier()

public String getIdentifier()

Used for logging.

Returns
Type Description
String
Overrides

getMessageName()

protected String getMessageName()

Used for logging.

Returns
Type Description
String
Overrides

getName()

public String getName()
Returns
Type Description
String

getPayloadString()

protected String getPayloadString()

Used for logging.

Returns
Type Description
String
Overrides

getType()

public ControlMessage.PreparedType getType()
Returns
Type Description
ControlMessage.PreparedType

sendPayload()

protected void sendPayload()

Close the statement server-side and clean up by deleting their metdata locally.

Overrides
Exceptions
Type Description
Exception