public abstract static class ConfigurationResponse.Builder<T extends ConfigurationResponse.Builder<T,U>,U extends ConfigurationResponse> extends Object
| Constructor and Description |
|---|
Builder() |
| Modifier and Type | Method and Description |
|---|---|
T |
withIndex(long index)
Sets the response index.
|
T |
withMembers(Collection<RaftMember> members)
Sets the response members.
|
T |
withTerm(long term)
Sets the response term.
|
T |
withTime(long time)
Sets the response time.
|
equals, getClass, hashCode, notify, notifyAll, wait, wait, waitwithError, withErrorpublic T withIndex(long index)
index - The response index.IllegalArgumentException - if index is negativepublic T withTerm(long term)
term - The response term.IllegalArgumentException - if term is negativepublic T withTime(long time)
time - The response time.IllegalArgumentException - if time is negativepublic T withMembers(Collection<RaftMember> members)
members - The response members.NullPointerException - if members is nullCopyright © 2013–2017. All rights reserved.