public class StatusMessage extends Object
Constructor and Description |
---|
StatusMessage()
No args constructor for use in serialization
|
StatusMessage(EventType eventType,
StatusLevel statusLevel,
Status status,
StatusContext statusContext,
String message,
Long timestampEpochMs) |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object other) |
EventType |
getEventType()
The type of event, which determines how to interpret the status payload.
|
String |
getMessage()
String describing the status message.
|
Status |
getStatus()
The status of the event.
|
StatusContext |
getStatusContext()
Context associated with a status message.
|
StatusLevel |
getStatusLevel()
Defines the verbosity of status messages in a status-stream.
|
Long |
getTimestampEpochMs()
The time this status was added to the status-stream (in milliseconds since epoch).
|
int |
hashCode() |
void |
setEventType(EventType eventType)
The type of event, which determines how to interpret the status payload.
|
void |
setMessage(String message)
String describing the status message.
|
void |
setStatus(Status status)
The status of the event.
|
void |
setStatusContext(StatusContext statusContext)
Context associated with a status message.
|
void |
setStatusLevel(StatusLevel statusLevel)
Defines the verbosity of status messages in a status-stream.
|
void |
setTimestampEpochMs(Long timestampEpochMs)
The time this status was added to the status-stream (in milliseconds since epoch).
|
String |
toString() |
StatusMessage |
withEventType(EventType eventType) |
StatusMessage |
withMessage(String message) |
StatusMessage |
withStatus(Status status) |
StatusMessage |
withStatusContext(StatusContext statusContext) |
StatusMessage |
withStatusLevel(StatusLevel statusLevel) |
StatusMessage |
withTimestampEpochMs(Long timestampEpochMs) |
public StatusMessage()
public StatusMessage(EventType eventType, StatusLevel statusLevel, Status status, StatusContext statusContext, String message, Long timestampEpochMs)
timestampEpochMs
- statusContext
- eventType
- message
- statusLevel
- status
- public EventType getEventType()
public void setEventType(EventType eventType)
public StatusMessage withEventType(EventType eventType)
public StatusLevel getStatusLevel()
public void setStatusLevel(StatusLevel statusLevel)
public StatusMessage withStatusLevel(StatusLevel statusLevel)
public Status getStatus()
public void setStatus(Status status)
public StatusMessage withStatus(Status status)
public StatusContext getStatusContext()
public void setStatusContext(StatusContext statusContext)
public StatusMessage withStatusContext(StatusContext statusContext)
public String getMessage()
public void setMessage(String message)
public StatusMessage withMessage(String message)
public Long getTimestampEpochMs()
public void setTimestampEpochMs(Long timestampEpochMs)
public StatusMessage withTimestampEpochMs(Long timestampEpochMs)