|
GigaSpaces XAP 9.7.2 API | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.openspaces.persistency.cassandra.CassandraSpaceDataSourceConfigurer
public class CassandraSpaceDataSourceConfigurer
A configurer for creating CassandraSpaceDataSource
instances.
Field Summary | |
---|---|
protected int |
batchLimit
|
protected CassandraDataSource |
cassandraDataSource
|
protected PropertyValueSerializer |
dynamicPropertyValueSerializer
|
protected PropertyValueSerializer |
fixedPropertyValueSerializer
|
protected HectorCassandraClient |
hectorClient
|
protected int |
maximumNumberOfConnections
|
protected int |
minimumNumberOfConnections
|
Constructor Summary | |
---|---|
CassandraSpaceDataSourceConfigurer()
|
Method Summary | |
---|---|
CassandraSpaceDataSourceConfigurer |
batchLimit(int batchLimit)
Optional. |
CassandraSpaceDataSourceConfigurer |
cassandraDataSource(CassandraDataSource cassandraDataSource)
|
CassandraSpaceDataSource |
create()
|
CassandraSpaceDataSourceConfigurer |
dynamicPropertyValueSerializer(PropertyValueSerializer dynamicPropertyValueSerializer)
Optional. |
CassandraSpaceDataSourceConfigurer |
fixedPropertyValueSerializer(PropertyValueSerializer fixedPropertyValueSerializer)
Optional. |
CassandraSpaceDataSourceConfigurer |
hectorClient(HectorCassandraClient hectorClient)
|
CassandraSpaceDataSourceConfigurer |
maximumNumberOfConnections(int maximumNumberOfConnections)
Optional. |
CassandraSpaceDataSourceConfigurer |
minimumNumberOfConnections(int minimumNumberOfConnections)
Optional. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected PropertyValueSerializer fixedPropertyValueSerializer
protected PropertyValueSerializer dynamicPropertyValueSerializer
protected CassandraDataSource cassandraDataSource
protected HectorCassandraClient hectorClient
protected int minimumNumberOfConnections
protected int maximumNumberOfConnections
protected int batchLimit
Constructor Detail |
---|
public CassandraSpaceDataSourceConfigurer()
Method Detail |
---|
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(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 CassandraSpaceDataSource create()
CassandraSpaceDataSource
matching this configurer
configuration.
|
GigaSpaces XAP 9.7.2 API | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |