Class CassandraSettings
- java.lang.Object
-
- org.wicketstuff.datastores.cassandra.CassandraSettings
-
- All Implemented Interfaces:
ICassandraSettings
public class CassandraSettings extends Object implements ICassandraSettings
- See Also:
ICassandraSettings
-
-
Constructor Summary
Constructors Constructor Description CassandraSettings()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description List<String>getContactPoints()StringgetKeyspaceName()DurationgetRecordTtl()StringgetTableName()ICassandraSettingssetKeyspaceName(String keyspaceName)Sets the name of the keyspace where the data will be savedICassandraSettingssetRecordTtl(Duration ttl)Sets the time to live for the records in the tableICassandraSettingssetTableName(String tableName)Sets the name of the table where the data will be saved
-
-
-
Method Detail
-
setKeyspaceName
public ICassandraSettings setKeyspaceName(String keyspaceName)
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
public String getKeyspaceName()
- Specified by:
getKeyspaceNamein interfaceICassandraSettings- Returns:
- the name of the keyspace where the data will be saved
-
setTableName
public ICassandraSettings setTableName(String tableName)
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
public String getTableName()
- Specified by:
getTableNamein interfaceICassandraSettings- Returns:
- the name of the table where the data will be saved
-
setRecordTtl
public ICassandraSettings setRecordTtl(Duration ttl)
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
public Duration getRecordTtl()
- Specified by:
getRecordTtlin interfaceICassandraSettings- Returns:
- the time to live for the records in the table
-
getContactPoints
public List<String> getContactPoints()
- Specified by:
getContactPointsin interfaceICassandraSettings- Returns:
- A list of contact points (hostname:port) to contact to.
-
-