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 Summary
-
Method Summary
Modifier and TypeMethodDescriptionSupplies credentials configuration.int
int
int
int
int
int
float
boolean
boolean
void
setCreateInterleavedTableDdlOnDeleteCascade
(boolean createInterleavedTableDdlOnDeleteCascade) void
setDatabase
(String database) void
setEmulatorHost
(String emulatorHost) void
setFailIfPoolExhausted
(boolean failIfPoolExhausted) void
setInstanceId
(String instanceId) void
setKeepAliveIntervalMinutes
(int keepAliveIntervalMinutes) void
setMaxIdleSessions
(int maxIdleSessions) void
setMaxSessions
(int maxSessions) void
setMinSessions
(int minSessions) void
setNumRpcChannels
(int numRpcChannels) void
setPrefetchChunks
(int prefetchChunks) void
setProjectId
(String projectId) void
setWriteSessionsFraction
(float writeSessionsFraction)
-
Constructor Details
-
GcpSpannerProperties
public GcpSpannerProperties()
-
-
Method Details
-
getCredentials
Description copied from interface:CredentialsSupplier
Supplies credentials configuration.- Specified by:
getCredentials
in interfaceCredentialsSupplier
- Returns:
- a POJO containing Google Cloud credentials location and scopes
-
getProjectId
-
setProjectId
-
getInstanceId
-
setInstanceId
-
getDatabase
-
setDatabase
-
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
-
setEmulatorHost
-