public abstract static class OperationResponse.Builder<T extends OperationResponse.Builder<T,U>,U extends OperationResponse> extends SessionResponse.Builder<T,U>
| Constructor and Description |
|---|
Builder() |
| Modifier and Type | Method and Description |
|---|---|
T |
withEventIndex(long eventIndex)
Sets the response index.
|
T |
withIndex(long index)
Sets the response index.
|
T |
withLastSequence(long lastSequence)
Sets the last sequence number.
|
T |
withResult(byte[] result)
Sets the operation response result.
|
equals, getClass, hashCode, notify, notifyAll, wait, wait, waitwithError, withErrorpublic T withIndex(long index)
index - The response index.IllegalArgumentException - If the response index is not positive.public T withEventIndex(long eventIndex)
eventIndex - The response event index.IllegalArgumentException - If the response index is not positive.public T withResult(byte[] result)
result - The response result.NullPointerException - if result is nullpublic T withLastSequence(long lastSequence)
lastSequence - The last sequence number.Copyright © 2013–2017. All rights reserved.