Class KeyspaceActionSpecificationFactoryBean

java.lang.Object
org.springframework.data.cassandra.config.KeyspaceActionSpecificationFactoryBean
All Implemented Interfaces:
FactoryBean<KeyspaceActions>, InitializingBean

public class KeyspaceActionSpecificationFactoryBean extends Object implements FactoryBean<KeyspaceActions>, InitializingBean
A single keyspace XML Element can result in multiple actions. Example: CREATE_DROP. This FactoryBean inspects the action required to satisfy the keyspace element, and then returns a Set of atomic KeyspaceActionSpecification required to satisfy the configuration action.
Author:
David Webb, Mark Paluch
  • Constructor Details

    • KeyspaceActionSpecificationFactoryBean

      public KeyspaceActionSpecificationFactoryBean()
  • Method Details

    • afterPropertiesSet

      public void afterPropertiesSet()
      Specified by:
      afterPropertiesSet in interface InitializingBean
    • getObject

      public KeyspaceActions getObject()
      Specified by:
      getObject in interface FactoryBean<KeyspaceActions>
    • getObjectType

      public Class<?> getObjectType()
      Specified by:
      getObjectType in interface FactoryBean<KeyspaceActions>
    • isSingleton

      public boolean isSingleton()
      Specified by:
      isSingleton in interface FactoryBean<KeyspaceActions>
    • getName

      @Nullable public String getName()
      Returns:
      Returns the name.
    • setName

      public void setName(String name)
      Parameters:
      name - The name to set.
    • isIfNotExists

      public boolean isIfNotExists()
      Returns:
      Returns the ifNotExists.
    • setIfNotExists

      public void setIfNotExists(boolean ifNotExists)
      Parameters:
      ifNotExists - The ifNotExists to set.
    • getAction

      @Nullable public KeyspaceAction getAction()
      Returns:
      Returns the action.
    • setAction

      public void setAction(KeyspaceAction action)
      Parameters:
      action - The action to set.
    • isDurableWrites

      public boolean isDurableWrites()
      Returns:
      Returns the durableWrites.
    • setDurableWrites

      public void setDurableWrites(boolean durableWrites)
      Parameters:
      durableWrites - The durableWrites to set.
    • getReplicationStrategy

      @Nullable public KeyspaceOption.ReplicationStrategy getReplicationStrategy()
      Returns:
      Returns the replicationStrategy.
    • setReplicationStrategy

      public void setReplicationStrategy(KeyspaceOption.ReplicationStrategy replicationStrategy)
      Parameters:
      replicationStrategy - The replicationStrategy to set.
    • getNetworkTopologyDataCenters

      public List<String> getNetworkTopologyDataCenters()
      Returns:
      Returns the networkTopologyDataCenters.
    • setNetworkTopologyDataCenters

      public void setNetworkTopologyDataCenters(List<String> networkTopologyDataCenters)
      Parameters:
      networkTopologyDataCenters - The networkTopologyDataCenters to set.
    • getNetworkTopologyReplicationFactors

      public List<String> getNetworkTopologyReplicationFactors()
      Returns:
      Returns the networkTopologyReplicationFactors.
    • setNetworkTopologyReplicationFactors

      public void setNetworkTopologyReplicationFactors(List<String> networkTopologyReplicationFactors)
      Parameters:
      networkTopologyReplicationFactors - The networkTopologyReplicationFactors to set.
    • getReplicationFactor

      public long getReplicationFactor()
      Returns:
      Returns the replicationFactor.
    • setReplicationFactor

      public void setReplicationFactor(int replicationFactor)
      Parameters:
      replicationFactor - The replicationFactor to set.