Class GcpSpannerProperties

java.lang.Object
com.google.cloud.spring.autoconfigure.spanner.GcpSpannerProperties
All Implemented Interfaces:
CredentialsSupplier

@ConfigurationProperties("spring.cloud.gcp.spanner") public class GcpSpannerProperties extends Object implements CredentialsSupplier
Settings for Spring Data Cloud Spanner.
  • Constructor Details

    • GcpSpannerProperties

      public GcpSpannerProperties()
  • Method Details

    • getCredentials

      public Credentials getCredentials()
      Description copied from interface: CredentialsSupplier
      Supplies credentials configuration.
      Specified by:
      getCredentials in interface CredentialsSupplier
      Returns:
      a POJO containing Google Cloud credentials location and scopes
    • getProjectId

      public String getProjectId()
    • setProjectId

      public void setProjectId(String projectId)
    • getInstanceId

      public String getInstanceId()
    • setInstanceId

      public void setInstanceId(String instanceId)
    • getDatabase

      public String getDatabase()
    • setDatabase

      public void setDatabase(String database)
    • getNumRpcChannels

      public int getNumRpcChannels()
    • setNumRpcChannels

      public void setNumRpcChannels(int numRpcChannels)
    • getPrefetchChunks

      public int getPrefetchChunks()
    • setPrefetchChunks

      public void setPrefetchChunks(int prefetchChunks)
    • getMinSessions

      public int getMinSessions()
    • setMinSessions

      public void setMinSessions(int minSessions)
    • getMaxSessions

      public int getMaxSessions()
    • setMaxSessions

      public void setMaxSessions(int maxSessions)
    • getMaxIdleSessions

      public int getMaxIdleSessions()
    • setMaxIdleSessions

      public void setMaxIdleSessions(int maxIdleSessions)
    • getWriteSessionsFraction

      public float getWriteSessionsFraction()
    • setWriteSessionsFraction

      public void setWriteSessionsFraction(float writeSessionsFraction)
    • getKeepAliveIntervalMinutes

      public int getKeepAliveIntervalMinutes()
    • setKeepAliveIntervalMinutes

      public void setKeepAliveIntervalMinutes(int keepAliveIntervalMinutes)
    • isCreateInterleavedTableDdlOnDeleteCascade

      public boolean isCreateInterleavedTableDdlOnDeleteCascade()
    • setCreateInterleavedTableDdlOnDeleteCascade

      public void setCreateInterleavedTableDdlOnDeleteCascade(boolean createInterleavedTableDdlOnDeleteCascade)
    • isFailIfPoolExhausted

      public boolean isFailIfPoolExhausted()
    • setFailIfPoolExhausted

      public void setFailIfPoolExhausted(boolean failIfPoolExhausted)
    • getEmulatorHost

      public String getEmulatorHost()
    • setEmulatorHost

      public void setEmulatorHost(String emulatorHost)