/** * Sets the server session timeout, returning the server builder for method chaining. * <p> * The session timeout is assigned by the server to a client which opens a new session. The session timeout * dictates the interval at which the client must send keep-alive requests to the cluster to maintain its * session. If a client fails to communicate with the cluster for larger than the configured session * timeout, its session may be expired. * * @param sessionTimeout The server session timeout in milliseconds. * @return The server builder. * @throws NullPointerException if {@code sessionTimeout} is null */ public Builder withSessionTimeout(Duration sessionTimeout) { builder.withSessionTimeout(sessionTimeout); return this; }
/** * Sets the replica session timeout, returning the replica builder for method chaining. * <p> * The session timeout is assigned by the replica to a client which opens a new session. The session timeout * dictates the interval at which the client must send keep-alive requests to the cluster to maintain its * session. If a client fails to communicate with the cluster for larger than the configured session * timeout, its session may be expired. * * @param sessionTimeout The replica session timeout in milliseconds. * @return The replica builder. * @throws NullPointerException if {@code sessionTimeout} is null */ public Builder withSessionTimeout(Duration sessionTimeout) { serverBuilder.withSessionTimeout(sessionTimeout); return this; }
/** * Sets the server session timeout, returning the server builder for method chaining. * <p> * The session timeout is assigned by the server to a client which opens a new session. The session timeout * dictates the interval at which the client must send keep-alive requests to the cluster to maintain its * session. If a client fails to communicate with the cluster for larger than the configured session * timeout, its session may be expired. * * @param sessionTimeout The server session timeout in milliseconds. * @return The server builder. * @throws NullPointerException if {@code sessionTimeout} is null */ public Builder withSessionTimeout(Duration sessionTimeout) { builder.withSessionTimeout(sessionTimeout); return this; }