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
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

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

isBlockIfPoolExhausted()

public boolean isBlockIfPoolExhausted()
Returns
Type Description
boolean

isFailIfPoolExhausted()

public boolean isFailIfPoolExhausted()
Returns
Type Description
boolean

newBuilder()

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

toBuilder()

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