public static class KeepAliveResponse.Builder extends Object
| Constructor and Description |
|---|
Builder() |
| Modifier and Type | Method and Description |
|---|---|
KeepAliveResponse |
build() |
KeepAliveResponse.Builder |
withLeader(MemberId leader)
Sets the response leader.
|
KeepAliveResponse.Builder |
withMembers(Collection<MemberId> members)
Sets the response members.
|
KeepAliveResponse.Builder |
withSessionIds(long[] sessionIds)
Sets the response sessions.
|
equals, getClass, hashCode, notify, notifyAll, wait, wait, waitwithError, withErrorpublic KeepAliveResponse.Builder withLeader(MemberId leader)
leader - The response leader.public KeepAliveResponse.Builder withMembers(Collection<MemberId> members)
members - The response members.NullPointerException - if members is nullpublic KeepAliveResponse.Builder withSessionIds(long[] sessionIds)
sessionIds - the response sessionspublic KeepAliveResponse build()
IllegalStateException - if status is OK and members is nullCopyright © 2013–2017. All rights reserved.