Class SessionPoolOptions

public class SessionPoolOptions

Options for the session pool used by DatabaseClient.

Inheritance

Object > SessionPoolOptions

Methods

equals(Object o)

public boolean equals(Object o)
Parameter
NameDescription
oObject
Returns
TypeDescription
boolean
Overrides

getKeepAliveIntervalMinutes()

public int getKeepAliveIntervalMinutes()
Returns
TypeDescription
int

getMaxIdleSessions() (deprecated)

public int getMaxIdleSessions()

(deprecated) Use a higher value for SessionPoolOptions.Builder#setMinSessions(int) instead of setting this option.

Returns
TypeDescription
int

getMaxSessions()

public int getMaxSessions()
Returns
TypeDescription
int

getMinSessions()

public int getMinSessions()
Returns
TypeDescription
int

getRemoveInactiveSessionAfter()

public Duration getRemoveInactiveSessionAfter()
Returns
TypeDescription
org.threeten.bp.Duration

getWriteSessionsFraction() (deprecated)

public float getWriteSessionsFraction()

(deprecated) This value is no longer used. The session pool does not prepare any sessions for read/write transactions. Instead, a transaction will be started by including a BeginTransaction option with the first statement of a transaction. This method may be removed in a future release.

Returns
TypeDescription
float

hashCode()

public int hashCode()
Returns
TypeDescription
int
Overrides

isBlockIfPoolExhausted()

public boolean isBlockIfPoolExhausted()
Returns
TypeDescription
boolean

isFailIfPoolExhausted()

public boolean isFailIfPoolExhausted()
Returns
TypeDescription
boolean

newBuilder()

public static SessionPoolOptions.Builder newBuilder()
Returns
TypeDescription
SessionPoolOptions.Builder

toBuilder()

public SessionPoolOptions.Builder toBuilder()
Returns
TypeDescription
SessionPoolOptions.Builder