public final class NotificationResponse extends Object implements BackendMessage
Constructor and Description |
---|
NotificationResponse(String name,
String payload,
int processId)
Creates a new message.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object o) |
String |
getName()
Returns the name of the channel that the notify has been raised on.
|
String |
getPayload()
Returns the “payload” string passed from the notifying process.
|
int |
getProcessId()
Returns the process ID of the notifying backend process.
|
int |
hashCode() |
String |
toString() |
public NotificationResponse(String name, String payload, int processId)
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 processIllegalArgumentException
- if name
or payload
is null
public String getName()
public String getPayload()
public int getProcessId()
Copyright © 2019. All rights reserved.