Class SessionPoolOptions (6.53.0)

public class SessionPoolOptions

Options for the session pool used by DatabaseClient.

Inheritance

Object > SessionPoolOptions

Static Methods

newBuilder()

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

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

isAutoDetectDialect()

public boolean isAutoDetectDialect()
Returns
TypeDescription
boolean

isBlockIfPoolExhausted()

public boolean isBlockIfPoolExhausted()
Returns
TypeDescription
boolean

isFailIfPoolExhausted()

public boolean isFailIfPoolExhausted()
Returns
TypeDescription
boolean

isTrackStackTraceOfSessionCheckout()

public boolean isTrackStackTraceOfSessionCheckout()
Returns
TypeDescription
boolean

toBuilder()

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