public class DaoFactory
extends java.lang.Object
implements java.io.Serializable
Constructor and Description |
---|
DaoFactory(SpannerConfig changeStreamSpannerConfig,
java.lang.String changeStreamName,
SpannerConfig metadataSpannerConfig,
java.lang.String partitionMetadataTableName,
Options.RpcPriority rpcPriority,
java.lang.String jobName)
Constructs a
DaoFactory with the configuration to be used for the underlying instances. |
Modifier and Type | Method and Description |
---|---|
ChangeStreamDao |
getChangeStreamDao()
Creates and returns a singleton DAO instance for querying a partition change stream.
|
PartitionMetadataAdminDao |
getPartitionMetadataAdminDao()
Creates and returns a singleton DAO instance for admin operations over the partition metadata
table.
|
PartitionMetadataDao |
getPartitionMetadataDao()
Creates and returns a singleton DAO instance for accessing the partition metadata table.
|
public DaoFactory(SpannerConfig changeStreamSpannerConfig, java.lang.String changeStreamName, SpannerConfig metadataSpannerConfig, java.lang.String partitionMetadataTableName, Options.RpcPriority rpcPriority, java.lang.String jobName)
DaoFactory
with the configuration to be used for the underlying instances.changeStreamSpannerConfig
- the configuration for the change streams DAOchangeStreamName
- the name of the change stream for the change streams DAOmetadataSpannerConfig
- the metadata tables configurationpartitionMetadataTableName
- the name of the created partition metadata tablerpcPriority
- the priority of the requests made by the DAO queriesjobName
- the name of the running jobpublic PartitionMetadataAdminDao getPartitionMetadataAdminDao()
This method is thread safe.
PartitionMetadataDao
public PartitionMetadataDao getPartitionMetadataDao()
This method is thread safe.
PartitionMetadataDao
public ChangeStreamDao getChangeStreamDao()
This method is thread safe.
ChangeStreamDao