Class CassandraSettings
java.lang.Object
org.wicketstuff.datastores.cassandra.CassandraSettings
- All Implemented Interfaces:
ICassandraSettings
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionsetKeyspaceName(String keyspaceName) Sets the name of the keyspace where the data will be savedsetRecordTtl(Duration ttl) Sets the time to live for the records in the tablesetTableName(String tableName) Sets the name of the table where the data will be saved
-
Constructor Details
-
CassandraSettings
public CassandraSettings()
-
-
Method Details
-
setKeyspaceName
Description copied from interface:ICassandraSettingsSets the name of the keyspace where the data will be saved- Specified by:
setKeyspaceNamein interfaceICassandraSettings- Parameters:
keyspaceName- The name of the keyspace- Returns:
- this instance, for chaining
-
getKeyspaceName
- Specified by:
getKeyspaceNamein interfaceICassandraSettings- Returns:
- the name of the keyspace where the data will be saved
-
setTableName
Description copied from interface:ICassandraSettingsSets the name of the table where the data will be saved- Specified by:
setTableNamein interfaceICassandraSettings- Parameters:
tableName- The name of the table- Returns:
- this instance, for chaining
-
getTableName
- Specified by:
getTableNamein interfaceICassandraSettings- Returns:
- the name of the table where the data will be saved
-
setRecordTtl
Description copied from interface:ICassandraSettingsSets the time to live for the records in the table- Specified by:
setRecordTtlin interfaceICassandraSettings- Parameters:
ttl- The time to live for the records in the table- Returns:
- this instance, for chaining
-
getRecordTtl
- Specified by:
getRecordTtlin interfaceICassandraSettings- Returns:
- the time to live for the records in the table
-
getContactPoints
- Specified by:
getContactPointsin interfaceICassandraSettings- Returns:
- A list of contact points (hostname:port) to contact to.
-