Class NotificationResponse

java.lang.Object
io.r2dbc.postgresql.message.backend.NotificationResponse
All Implemented Interfaces:
BackendMessage

public final class NotificationResponse extends Object implements BackendMessage
The NotificationResponse message.
  • Constructor Details

    • NotificationResponse

      public NotificationResponse(String name, String payload, int processId)
      Create a new message.
      Parameters:
      name - the name of the channel that the notify has been raised on
      payload - the “payload” string passed from the notifying process
      processId - the process ID of the notifying backend process
      Throws:
      IllegalArgumentException - if name or payload is null
  • Method Details

    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • getName

      public String 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

      public String 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

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object