T - The builder type.U - The response type.public static interface RaftResponse.Builder<T extends RaftResponse.Builder<T,U>,U extends RaftResponse>
extends io.atomix.utils.Builder<U>
| Modifier and Type | Method and Description |
|---|---|
default T |
withError(RaftError.Type type)
Sets the response error.
|
default T |
withError(RaftError.Type type,
String message)
Sets the response error.
|
T |
withError(RaftError error)
Sets the response error.
|
T |
withStatus(RaftResponse.Status status)
Sets the response status.
|
T withStatus(RaftResponse.Status status)
status - The response status.NullPointerException - if status is nulldefault T withError(RaftError.Type type)
type - The response error type.NullPointerException - if type is nulldefault T withError(RaftError.Type type, String message)
type - The response error type.message - The response error message.NullPointerException - if type is nullT withError(RaftError error)
error - The response error.NullPointerException - if error is nullCopyright © 2013–2017. All rights reserved.