Class NoticeResponse (0.18.2)

public class NoticeResponse extends WireOutput

Notices can be sent as asynchronous messages and can include warnings, informational messages, debug information, etc.

Inheritance

java.lang.Object > WireOutput > NoticeResponse

Constructors

NoticeResponse(DataOutputStream output, SQLState sqlState, NoticeResponse.NoticeSeverity severity, String message, String hint)

public NoticeResponse(DataOutputStream output, SQLState sqlState, NoticeResponse.NoticeSeverity severity, String message, String hint)
Parameters
NameDescription
outputDataOutputStream
sqlStateSQLState
severityNoticeResponse.NoticeSeverity
messageString
hintString

Methods

getHint()

public String getHint()
Returns
TypeDescription
String

getIdentifier()

public byte getIdentifier()

Override this to specify the byte which represents the protocol for the specific message. Used for logging and by send.

Returns
TypeDescription
byte
Overrides

getMessage()

public String getMessage()
Returns
TypeDescription
String

getMessageName()

protected String getMessageName()

Used for logging.

Returns
TypeDescription
String
Overrides

getPayloadString()

protected String getPayloadString()

Used for logging.

Returns
TypeDescription
String
Overrides

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