public static class VoteResponse.Builder extends Object
| Constructor and Description |
|---|
Builder() |
| Modifier and Type | Method and Description |
|---|---|
VoteResponse |
build() |
VoteResponse.Builder |
withTerm(long term)
Sets the response term.
|
VoteResponse.Builder |
withVoted(boolean voted)
Sets whether the vote was granted.
|
equals, getClass, hashCode, notify, notifyAll, wait, wait, waitwithError, withErrorpublic VoteResponse.Builder withTerm(long term)
term - The response term.IllegalArgumentException - if term is negativepublic VoteResponse.Builder withVoted(boolean voted)
voted - Whether the vote was granted.public VoteResponse build()
Copyright © 2013–2017. All rights reserved.