public interface StatusCreate
Modifier and Type | Method and Description |
---|---|
Status |
createStatus(Status.StatusType type,
String message,
Throwable cause)
Create status.
|
Status |
deserializeStatus(ByteBuffer buffer,
DeserializableControl control)
Deserialize status.
|
Status |
getStatusOK()
Get OK status.
|
Status getStatusOK()
Status
instance.Status createStatus(Status.StatusType type, String message, Throwable cause)
type
- status type, non-null
.message
- message describing an error, non-null
.
NOTE: Do NOT use throwable.getMessage()
as message, since it will be supplied with the cause
.cause
- exception that caused an error. Optional.Status deserializeStatus(ByteBuffer buffer, DeserializableControl control)
Status.deserialize()
, since this allows OK status optimization.buffer
- deserialization buffer.control
- deserialization control.Copyright © 2014. All Rights Reserved.