public class CassandraSpaceDataSourceConfigurer extends Object
CassandraSpaceDataSource
instances.Modifier and Type | Field and Description |
---|---|
protected boolean |
augmentInitialLoadEntries |
protected int |
batchLimit |
protected org.apache.cassandra.cql.jdbc.CassandraDataSource |
cassandraDataSource |
protected ClusterInfo |
clusterInfo |
protected PropertyValueSerializer |
dynamicPropertyValueSerializer |
protected PropertyValueSerializer |
fixedPropertyValueSerializer |
protected HectorCassandraClient |
hectorClient |
protected String[] |
initialLoadQueryScanningBasePackages |
protected int |
maximumNumberOfConnections |
protected int |
minimumNumberOfConnections |
Constructor and Description |
---|
CassandraSpaceDataSourceConfigurer() |
protected PropertyValueSerializer fixedPropertyValueSerializer
protected PropertyValueSerializer dynamicPropertyValueSerializer
protected org.apache.cassandra.cql.jdbc.CassandraDataSource cassandraDataSource
protected HectorCassandraClient hectorClient
protected int minimumNumberOfConnections
protected int maximumNumberOfConnections
protected int batchLimit
protected String[] initialLoadQueryScanningBasePackages
protected boolean augmentInitialLoadEntries
protected ClusterInfo clusterInfo
public CassandraSpaceDataSourceConfigurer fixedPropertyValueSerializer(PropertyValueSerializer fixedPropertyValueSerializer)
PropertyValueSerializer.fromByteBuffer(java.nio.ByteBuffer)
Note: This property must correspond to the property set on CassandraSpaceSynchronizationEndpoint
. (default: Java object deserialization)fixedPropertyValueSerializer
- The PropertyValueSerializer
to use.this
instance.public CassandraSpaceDataSourceConfigurer dynamicPropertyValueSerializer(PropertyValueSerializer dynamicPropertyValueSerializer)
PropertyValueSerializer.fromByteBuffer(java.nio.ByteBuffer)
.
Note: This property must correspond to the property set on CassandraSpaceSynchronizationEndpoint
. (default DynamicPropertyValueSerializer
)dynamicPropertyValueSerializer
- the PropertyValueSerializer
to use.this
instance.public CassandraSpaceDataSourceConfigurer cassandraDataSource(org.apache.cassandra.cql.jdbc.CassandraDataSource cassandraDataSource)
cassandraDataSource
- An instance of CassandraDataSource
configured to use CQL
version 2.0.0.this
instance.public CassandraSpaceDataSourceConfigurer hectorClient(HectorCassandraClient hectorClient)
hectorClient
- an instance of HectorCassandraClient
.this
instance.public CassandraSpaceDataSourceConfigurer minimumNumberOfConnections(int minimumNumberOfConnections)
minimumNumberOfConnections
- Minimum number of cassandra-jdbc connections to maintain in
the connection pool. (default: 5)this
instance.public CassandraSpaceDataSourceConfigurer maximumNumberOfConnections(int maximumNumberOfConnections)
maximumNumberOfConnections
- Maximum number of cassandra-jdbc connections to maintain in
the connection pool. (default: 30)this
instance.public CassandraSpaceDataSourceConfigurer batchLimit(int batchLimit)
batchLimit
- Maximum number of rows that will be transferred in batches. (default:
10000). e.g. If batchLimit is set to 10000 and a certain query result set
size is 22000, then the query will be translated to 3 queries each with the
CQL LIMIT argument set to 10000.this
instance.public CassandraSpaceDataSourceConfigurer initialLoadQueryScanningBasePackages(String[] initialLoadQueryScanningBasePackages)
initialLoadQueryScanningBasePackages
- array of base packages to scan for custom initial
load query methods marked with the SpaceInitialLoadQuery
annotation (default: null, scans nothing).this
instance.public CassandraSpaceDataSourceConfigurer clusterInfo(ClusterInfo clusterInfo)
ClusterInfo
to be used with the SpaceDataSourcepublic CassandraSpaceDataSourceConfigurer augmentInitialLoadEntries(boolean augmentInitialLoadEntries)
augmentInitialLoadEntries
- feature switch for initial load entry augmentation with
partition-specific query (default: true).this
instance.public CassandraSpaceDataSource create()
CassandraSpaceDataSource
matching this configurer
configuration.Copyright © GigaSpaces.