Class SessionPoolOptions (6.74.0)

public class SessionPoolOptions

Options for the session pool used by DatabaseClient.

Inheritance

Object > SessionPoolOptions

Static Methods

newBuilder()

public static SessionPoolOptions.Builder newBuilder()
Returns
Type Description
SessionPoolOptions.Builder

Methods

equals(Object o)

public boolean equals(Object o)
Parameter
Name Description
o Object
Returns
Type Description
boolean
Overrides

getKeepAliveIntervalMinutes()

public int getKeepAliveIntervalMinutes()
Returns
Type Description
int

getMaxIdleSessions() (deprecated)

public int getMaxIdleSessions()

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

Returns
Type Description
int

getMaxSessions()

public int getMaxSessions()
Returns
Type Description
int

getMinSessions()

public int getMinSessions()
Returns
Type Description
int

getRemoveInactiveSessionAfter()

public Duration getRemoveInactiveSessionAfter()
Returns
Type Description
org.threeten.bp.Duration

getUseMultiplexedSession()

public boolean getUseMultiplexedSession()
Returns
Type Description
boolean

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
Type Description
float

hashCode()

public int hashCode()
Returns
Type Description
int
Overrides

isAutoDetectDialect()

public boolean isAutoDetectDialect()
Returns
Type Description
boolean

isBlockIfPoolExhausted()

public boolean isBlockIfPoolExhausted()
Returns
Type Description
boolean

isFailIfPoolExhausted()

public boolean isFailIfPoolExhausted()
Returns
Type Description
boolean

isTrackStackTraceOfSessionCheckout()

public boolean isTrackStackTraceOfSessionCheckout()
Returns
Type Description
boolean

toBuilder()

public SessionPoolOptions.Builder toBuilder()
Returns
Type Description
SessionPoolOptions.Builder