Class SessionPoolOptionsHelper (6.83.0)

public class SessionPoolOptionsHelper

Simple helper class to get access to a package-private method in the com.google.cloud.spanner.SessionPoolOptions.

Inheritance

java.lang.Object > SessionPoolOptionsHelper

Static Methods

setUseMultiplexedSession(SessionPoolOptions.Builder sessionPoolOptionsBuilder, boolean useMultiplexedSession)

public static SessionPoolOptions.Builder setUseMultiplexedSession(SessionPoolOptions.Builder sessionPoolOptionsBuilder, boolean useMultiplexedSession)
Parameters
Name Description
sessionPoolOptionsBuilder SessionPoolOptions.Builder
useMultiplexedSession boolean
Returns
Type Description
SessionPoolOptions.Builder

setUseMultiplexedSessionForPartitionedOperations(SessionPoolOptions.Builder sessionPoolOptionsBuilder, boolean useMultiplexedSessionForPartitionedOps)

public static SessionPoolOptions.Builder setUseMultiplexedSessionForPartitionedOperations(SessionPoolOptions.Builder sessionPoolOptionsBuilder, boolean useMultiplexedSessionForPartitionedOps)
Parameters
Name Description
sessionPoolOptionsBuilder SessionPoolOptions.Builder
useMultiplexedSessionForPartitionedOps boolean
Returns
Type Description
SessionPoolOptions.Builder

setUseMultiplexedSessionForRW(SessionPoolOptions.Builder sessionPoolOptionsBuilder, boolean useMultiplexedSessionForRW)

public static SessionPoolOptions.Builder setUseMultiplexedSessionForRW(SessionPoolOptions.Builder sessionPoolOptionsBuilder, boolean useMultiplexedSessionForRW)
Parameters
Name Description
sessionPoolOptionsBuilder SessionPoolOptions.Builder
useMultiplexedSessionForRW boolean
Returns
Type Description
SessionPoolOptions.Builder

Constructors

SessionPoolOptionsHelper()

public SessionPoolOptionsHelper()