public class ErrorResponseFlyweight
extends java.lang.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 |
---|---|
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.
|
java.lang.String |
errorMessage()
Error message associated with the error.
|
ErrorResponseFlyweight |
errorMessage(java.lang.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(org.agrona.MutableDirectBuffer buffer,
int offset)
Wrap the buffer at a given offset for updates.
|
public final ErrorResponseFlyweight wrap(org.agrona.MutableDirectBuffer buffer, int offset)
buffer
- to wrapoffset
- at which the message begins.public long offendingCommandCorrelationId()
public ErrorResponseFlyweight offendingCommandCorrelationId(long correlationId)
correlationId
- of the offending commandpublic ErrorCode errorCode()
public int errorCodeValue()
public ErrorResponseFlyweight errorCode(ErrorCode code)
code
- for the errorpublic java.lang.String errorMessage()
public ErrorResponseFlyweight errorMessage(java.lang.String message)
message
- to associate with the errorpublic int length()
Copyright © 2014-2018 Real Logic Ltd. All Rights Reserved.