org.infinispan.configuration.cache
Class SingletonStoreConfiguration

java.lang.Object
  extended by org.infinispan.configuration.cache.SingletonStoreConfiguration

public class SingletonStoreConfiguration
extends Object

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
 boolean enabled()
          If true, the singleton store cache store is enabled.
 long pushStateTimeout()
          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.
 boolean pushStateWhenCoordinator()
          If true, when a node becomes the coordinator, it will transfer in-memory state to the underlying cache store.
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Method Detail

enabled

public boolean enabled()
If true, the singleton store cache store is enabled.


pushStateTimeout

public long pushStateTimeout()
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 boolean pushStateWhenCoordinator()
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.


toString

public String toString()
Overrides:
toString in class Object

-->

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