Infinispan Distribution 5.2.6.Final-redhat-2

org.infinispan.configuration.cache
Class SingletonStoreConfigurationBuilder<S>

java.lang.Object
  extended by org.infinispan.configuration.cache.AbstractLoadersConfigurationChildBuilder
      extended by org.infinispan.configuration.cache.AbstractLoaderConfigurationChildBuilder<S>
          extended by org.infinispan.configuration.cache.AbstractStoreConfigurationChildBuilder<S>
              extended by org.infinispan.configuration.cache.SingletonStoreConfigurationBuilder<S>
All Implemented Interfaces:
Builder<SingletonStoreConfiguration>, ConfigurationChildBuilder, LoaderConfigurationChildBuilder<S>, LoadersConfigurationChildBuilder, StoreConfigurationChildBuilder<S>

public class SingletonStoreConfigurationBuilder<S>
extends AbstractStoreConfigurationChildBuilder<S>
implements Builder<SingletonStoreConfiguration>

SingletonStore is a delegating cache store used for situations when only one instance in a cluster should interact with the underlying store. The coordinator of the cluster will be responsible for the underlying CacheStore. SingletonStore is a simply facade to a real CacheStore implementation. It always delegates reads to the real CacheStore.

Author:
pmuir

Method Summary
 Configuration build()
           
 ClusteringConfigurationBuilder clustering()
           
 SingletonStoreConfiguration create()
          Create the configuration bean
 CustomInterceptorsConfigurationBuilder customInterceptors()
           
 DataContainerConfigurationBuilder dataContainer()
           
 DeadlockDetectionConfigurationBuilder deadlockDetection()
           
 SingletonStoreConfigurationBuilder<S> disable()
          Enable the singleton store cache store
 SingletonStoreConfigurationBuilder<S> enable()
          Enable the singleton store cache store
 SingletonStoreConfigurationBuilder<S> enabled(boolean enabled)
          If true, the singleton store cache store is enabled.
 EvictionConfigurationBuilder eviction()
           
 ExpirationConfigurationBuilder expiration()
           
protected  ConfigurationBuilder getBuilder()
           
 IndexingConfigurationBuilder indexing()
           
 InvocationBatchingConfigurationBuilder invocationBatching()
           
 JMXStatisticsConfigurationBuilder jmxStatistics()
           
 LoadersConfigurationBuilder loaders()
           
 LockingConfigurationBuilder locking()
           
 SingletonStoreConfigurationBuilder<S> pushStateTimeout(long l)
          If pushStateWhenCoordinator is true, this property sets the maximum number of milliseconds that the process of pushing the in-memory state to the underlying cache loader should take.
 SingletonStoreConfigurationBuilder<S> pushStateTimeout(long l, TimeUnit unit)
          If pushStateWhenCoordinator is true, this property sets the maximum number of milliseconds that the process of pushing the in-memory state to the underlying cache loader should take.
 SingletonStoreConfigurationBuilder<S> pushStateWhenCoordinator(boolean b)
          If true, when a node becomes the coordinator, it will transfer in-memory state to the underlying cache store.
 SingletonStoreConfigurationBuilder<S> read(SingletonStoreConfiguration template)
          Reads the configuration from an already created configuration bean into this builder.
 SitesConfigurationBuilder sites()
           
 StoreAsBinaryConfigurationBuilder storeAsBinary()
           
 String toString()
           
 TransactionConfigurationBuilder transaction()
           
 UnsafeConfigurationBuilder unsafe()
           
 void validate()
          Validate the data in this builder before building the configuration bean
 VersioningConfigurationBuilder versioning()
           
 
Methods inherited from class org.infinispan.configuration.cache.AbstractStoreConfigurationChildBuilder
async, fetchPersistentState, ignoreModifications, purgeOnStartup, purgerThreads, purgeSynchronously, singletonStore
 
Methods inherited from class org.infinispan.configuration.cache.AbstractLoaderConfigurationChildBuilder
addProperty, withProperties
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.infinispan.configuration.cache.LoaderConfigurationChildBuilder
addProperty, withProperties
 
Methods inherited from interface org.infinispan.configuration.cache.ConfigurationChildBuilder
build, clustering, customInterceptors, dataContainer, deadlockDetection, eviction, expiration, indexing, invocationBatching, jmxStatistics, loaders, locking, sites, storeAsBinary, transaction, unsafe, versioning
 
Methods inherited from interface org.infinispan.configuration.cache.LoadersConfigurationChildBuilder
loaders
 

Method Detail

enable

public SingletonStoreConfigurationBuilder<S> enable()
Enable the singleton store cache store


enabled

public SingletonStoreConfigurationBuilder<S> enabled(boolean enabled)
If true, the singleton store cache store is enabled.


disable

public SingletonStoreConfigurationBuilder<S> disable()
Enable the singleton store cache store


pushStateTimeout

public SingletonStoreConfigurationBuilder<S> pushStateTimeout(long l)
If pushStateWhenCoordinator is true, this property sets the maximum number of milliseconds that the process of pushing the in-memory state to the underlying cache loader should take.


pushStateTimeout

public SingletonStoreConfigurationBuilder<S> pushStateTimeout(long l,
                                                              TimeUnit unit)
If pushStateWhenCoordinator is true, this property sets the maximum number of milliseconds that the process of pushing the in-memory state to the underlying cache loader should take.


pushStateWhenCoordinator

public SingletonStoreConfigurationBuilder<S> pushStateWhenCoordinator(boolean b)
If true, when a node becomes the coordinator, it will transfer in-memory state to the underlying cache store. This can be very useful in situations where the coordinator crashes and there's a gap in time until the new coordinator is elected.


validate

public void validate()
Description copied from interface: Builder
Validate the data in this builder before building the configuration bean

Specified by:
validate in interface Builder<SingletonStoreConfiguration>

create

public SingletonStoreConfiguration create()
Description copied from interface: Builder
Create the configuration bean

Specified by:
create in interface Builder<SingletonStoreConfiguration>
Returns:

read

public SingletonStoreConfigurationBuilder<S> read(SingletonStoreConfiguration template)
Description copied from interface: Builder
Reads the configuration from an already created configuration bean into this builder. Returns an appropriate builder to allow fluent configuration

Specified by:
read in interface Builder<SingletonStoreConfiguration>
Parameters:
template - the configuration from which to "clone" this config if needed.

toString

public String toString()
Overrides:
toString in class Object

clustering

public ClusteringConfigurationBuilder clustering()
Specified by:
clustering in interface ConfigurationChildBuilder

customInterceptors

public CustomInterceptorsConfigurationBuilder customInterceptors()
Specified by:
customInterceptors in interface ConfigurationChildBuilder

dataContainer

public DataContainerConfigurationBuilder dataContainer()
Specified by:
dataContainer in interface ConfigurationChildBuilder

deadlockDetection

public DeadlockDetectionConfigurationBuilder deadlockDetection()
Specified by:
deadlockDetection in interface ConfigurationChildBuilder

eviction

public EvictionConfigurationBuilder eviction()
Specified by:
eviction in interface ConfigurationChildBuilder

expiration

public ExpirationConfigurationBuilder expiration()
Specified by:
expiration in interface ConfigurationChildBuilder

indexing

public IndexingConfigurationBuilder indexing()
Specified by:
indexing in interface ConfigurationChildBuilder

invocationBatching

public InvocationBatchingConfigurationBuilder invocationBatching()
Specified by:
invocationBatching in interface ConfigurationChildBuilder

jmxStatistics

public JMXStatisticsConfigurationBuilder jmxStatistics()
Specified by:
jmxStatistics in interface ConfigurationChildBuilder

loaders

public LoadersConfigurationBuilder loaders()
Specified by:
loaders in interface ConfigurationChildBuilder

locking

public LockingConfigurationBuilder locking()
Specified by:
locking in interface ConfigurationChildBuilder

storeAsBinary

public StoreAsBinaryConfigurationBuilder storeAsBinary()
Specified by:
storeAsBinary in interface ConfigurationChildBuilder

transaction

public TransactionConfigurationBuilder transaction()
Specified by:
transaction in interface ConfigurationChildBuilder

versioning

public VersioningConfigurationBuilder versioning()
Specified by:
versioning in interface ConfigurationChildBuilder

unsafe

public UnsafeConfigurationBuilder unsafe()
Specified by:
unsafe in interface ConfigurationChildBuilder

sites

public SitesConfigurationBuilder sites()
Specified by:
sites in interface ConfigurationChildBuilder

getBuilder

protected ConfigurationBuilder getBuilder()

build

public Configuration build()
Specified by:
build in interface ConfigurationChildBuilder

Infinispan Distribution 5.2.6.Final-redhat-2

Copyright © 2013 JBoss, a division of Red Hat. All Rights Reserved.