Class SessionPoolOptions

java.lang.Object
com.google.cloud.spanner.SessionPoolOptions

public class SessionPoolOptions extends Object
Options for the session pool used by DatabaseClient.
  • Method Details

    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toBuilder

      public SessionPoolOptions.Builder toBuilder()
    • getMinSessions

      public int getMinSessions()
    • getMaxSessions

      public int getMaxSessions()
    • getMaxIdleSessions

      @Deprecated public int getMaxIdleSessions()
      Deprecated.
      Use a higher value for SessionPoolOptions.Builder.setMinSessions(int) instead of setting this option.
    • 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.
    • getKeepAliveIntervalMinutes

      public int getKeepAliveIntervalMinutes()
    • getRemoveInactiveSessionAfter

      public org.threeten.bp.Duration getRemoveInactiveSessionAfter()
    • isFailIfPoolExhausted

      public boolean isFailIfPoolExhausted()
    • isBlockIfPoolExhausted

      public boolean isBlockIfPoolExhausted()
    • isAutoDetectDialect

      public boolean isAutoDetectDialect()
    • isTrackStackTraceOfSessionCheckout

      public boolean isTrackStackTraceOfSessionCheckout()
    • newBuilder

      public static SessionPoolOptions.Builder newBuilder()