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