Class NotificationResponse
java.lang.Object
io.r2dbc.postgresql.message.backend.NotificationResponse
- All Implemented Interfaces:
BackendMessage
The NotificationResponse message.
-
Constructor Summary
ConstructorsConstructorDescriptionNotificationResponse(String name, String payload, int processId) Create a new message. -
Method Summary
-
Constructor Details
-
NotificationResponse
Create a new message.- Parameters:
name- the name of the channel that the notify has been raised onpayload- the “payload” string passed from the notifying processprocessId- the process ID of the notifying backend process- Throws:
IllegalArgumentException- ifnameorpayloadisnull
-
-
Method Details
-
equals
-
getName
Returns the name of the channel that the notify has been raised on.- Returns:
- the name of the channel that the notify has been raised on
-
getPayload
Returns the “payload” string passed from the notifying process.- Returns:
- the “payload” string passed from the notifying process
-
getProcessId
public int getProcessId()Returns the process ID of the notifying backend process.- Returns:
- the process ID of the notifying backend process
-
hashCode
-
toString
-