public class HectorCassandraClientFactoryBean extends Object implements org.springframework.beans.factory.FactoryBean<HectorCassandraClient>, org.springframework.beans.factory.InitializingBean, org.springframework.beans.factory.DisposableBean
Constructor and Description |
---|
HectorCassandraClientFactoryBean() |
Modifier and Type | Method and Description |
---|---|
void |
afterPropertiesSet() |
void |
destroy() |
protected HectorCassandraClientConfigurer |
getConfigurer() |
HectorCassandraClient |
getObject() |
Class<?> |
getObjectType() |
boolean |
isSingleton() |
void |
setClusterName(String clusterName) |
void |
setColumnFamilyGcGraceSeconds(int columnFamilyGcGraceSeconds) |
void |
setHosts(String hosts) |
void |
setKeyspaceName(String keyspaceName) |
void |
setPort(int port) |
void |
setReadConsistencyLevel(CassandraConsistencyLevel readConsistencyLevel) |
void |
setWriteConsistencyLevel(CassandraConsistencyLevel writeConsistencyLevel) |
protected HectorCassandraClientConfigurer getConfigurer()
public void setHosts(String hosts)
public void setPort(int port)
public void setKeyspaceName(String keyspaceName)
public void setClusterName(String clusterName)
public void setColumnFamilyGcGraceSeconds(int columnFamilyGcGraceSeconds)
public void setReadConsistencyLevel(CassandraConsistencyLevel readConsistencyLevel)
public void setWriteConsistencyLevel(CassandraConsistencyLevel writeConsistencyLevel)
public void afterPropertiesSet() throws Exception
afterPropertiesSet
in interface org.springframework.beans.factory.InitializingBean
Exception
public HectorCassandraClient getObject() throws Exception
getObject
in interface org.springframework.beans.factory.FactoryBean<HectorCassandraClient>
Exception
public Class<?> getObjectType()
getObjectType
in interface org.springframework.beans.factory.FactoryBean<HectorCassandraClient>
public boolean isSingleton()
isSingleton
in interface org.springframework.beans.factory.FactoryBean<HectorCassandraClient>
Copyright © GigaSpaces.