public class ErrorResponseFlyweight extends Object
0 1 2 3 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | Offending Command Correlation ID | | | +---------------------------------------------------------------+ | Error Code | +---------------------------------------------------------------+ | Error Message Length | +---------------------------------------------------------------+ | Error Message ... ... | +---------------------------------------------------------------+
| Constructor and Description |
|---|
ErrorResponseFlyweight() |
| Modifier and Type | Method and Description |
|---|---|
int |
appendMessage(Appendable appendable)
Append the error message to an appendable without allocation.
|
ErrorCode |
errorCode()
Error code for the command.
|
ErrorResponseFlyweight |
errorCode(ErrorCode code)
Set the error code for the command.
|
int |
errorCodeValue()
Error code value for the command.
|
String |
errorMessage()
Error message associated with the error.
|
ErrorResponseFlyweight |
errorMessage(String message)
Set the error message.
|
int |
length()
Length of the error response in bytes.
|
long |
offendingCommandCorrelationId()
Return correlation ID of the offending command.
|
ErrorResponseFlyweight |
offendingCommandCorrelationId(long correlationId)
Set correlation ID of the offending command.
|
ErrorResponseFlyweight |
wrap(MutableDirectBuffer buffer,
int offset)
Wrap the buffer at a given offset for updates.
|
public final ErrorResponseFlyweight wrap(MutableDirectBuffer buffer, int offset)
buffer - to wrap.offset - at which the message begins.public long offendingCommandCorrelationId()
public ErrorResponseFlyweight offendingCommandCorrelationId(long correlationId)
correlationId - of the offending command.public ErrorCode errorCode()
public int errorCodeValue()
public ErrorResponseFlyweight errorCode(ErrorCode code)
code - for the error.public String errorMessage()
public int appendMessage(Appendable appendable)
appendable - to append error message to.public ErrorResponseFlyweight errorMessage(String message)
message - to associate with the error.public int length()
Copyright © 2014-2023 Real Logic Limited. All Rights Reserved.