org.ehcache.clustered.client.config
Class ClusteredStoreConfiguration

java.lang.Object
  extended by org.ehcache.clustered.client.config.ClusteredStoreConfiguration
All Implemented Interfaces:
org.ehcache.spi.service.ServiceConfiguration<org.ehcache.clustered.client.internal.store.ClusteredStore.Provider>

public class ClusteredStoreConfiguration
extends java.lang.Object
implements org.ehcache.spi.service.ServiceConfiguration<org.ehcache.clustered.client.internal.store.ClusteredStore.Provider>

ServiceConfiguration for the ClusteredStore.


Constructor Summary
ClusteredStoreConfiguration()
          Creates a new configuration with consistency set to EVENTUAL.
ClusteredStoreConfiguration(Consistency consistency)
          Creates a new configuration with the provided Consistency.
 
Method Summary
 Consistency getConsistency()
          Returns the Consistency for this configuration instance.
 java.lang.Class<org.ehcache.clustered.client.internal.store.ClusteredStore.Provider> getServiceType()
          
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ClusteredStoreConfiguration

public ClusteredStoreConfiguration()
Creates a new configuration with consistency set to EVENTUAL.


ClusteredStoreConfiguration

public ClusteredStoreConfiguration(Consistency consistency)
Creates a new configuration with the provided Consistency.

Parameters:
consistency - the Consistency
Method Detail

getServiceType

public java.lang.Class<org.ehcache.clustered.client.internal.store.ClusteredStore.Provider> getServiceType()

Specified by:
getServiceType in interface org.ehcache.spi.service.ServiceConfiguration<org.ehcache.clustered.client.internal.store.ClusteredStore.Provider>

getConsistency

public Consistency getConsistency()
Returns the Consistency for this configuration instance.

Returns:
the Consistency