public static class OpenSessionRequest.Builder extends Object
| Constructor and Description |
|---|
Builder() |
| Modifier and Type | Method and Description |
|---|---|
OpenSessionRequest |
build() |
OpenSessionRequest.Builder |
withMaxTimeout(long timeout)
Sets the maximum session timeout.
|
OpenSessionRequest.Builder |
withMemberId(MemberId member)
Sets the client node identifier.
|
OpenSessionRequest.Builder |
withMinTimeout(long timeout)
Sets the minimum session timeout.
|
OpenSessionRequest.Builder |
withReadConsistency(ReadConsistency readConsistency)
Sets the session read consistency.
|
OpenSessionRequest.Builder |
withServiceName(String serviceName)
Sets the service name.
|
OpenSessionRequest.Builder |
withServiceType(ServiceType serviceType)
Sets the service type name.
|
public OpenSessionRequest.Builder withMemberId(MemberId member)
member - The client node identifier.NullPointerException - if node is nullpublic OpenSessionRequest.Builder withServiceName(String serviceName)
serviceName - The service name.NullPointerException - if serviceName is nullpublic OpenSessionRequest.Builder withServiceType(ServiceType serviceType)
serviceType - The service type name.NullPointerException - if serviceType is nullpublic OpenSessionRequest.Builder withReadConsistency(ReadConsistency readConsistency)
readConsistency - the session read consistencyNullPointerException - if the readConsistency is nullpublic OpenSessionRequest.Builder withMinTimeout(long timeout)
timeout - The minimum session timeout.IllegalArgumentException - if timeout is not positivepublic OpenSessionRequest.Builder withMaxTimeout(long timeout)
timeout - The maximum session timeout.IllegalArgumentException - if timeout is not positivepublic OpenSessionRequest build()
IllegalStateException - is session is not positiveCopyright © 2013–2017. All rights reserved.