org.infinispan.configuration.cache
Class StateTransferConfiguration

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

public class StateTransferConfiguration
extends Object

Configures how state is retrieved when a new cache joins the cluster. Used with invalidation and replication clustered modes.

Since:
5.1

Method Summary
 int chunkSize()
          If > 0, the state will be transferred in batches of chunkSize cache entries.
 boolean equals(Object o)
           
 boolean fetchInMemoryState()
          If true, the cache will fetch data from the neighboring caches when it starts up, so the cache starts 'warm', although it will impact startup time.
 int hashCode()
           
protected  Boolean originalFetchInMemoryState()
          We want to remember if the user didn't configure fetchInMemoryState for the default cache.
 long timeout()
          This is the maximum amount of time - in milliseconds - to wait for state from neighboring caches, before throwing an exception and aborting startup.
 StateTransferConfiguration timeout(long l)
          This is the maximum amount of time - in milliseconds - to wait for state from neighboring caches, before throwing an exception and aborting startup.
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Method Detail

fetchInMemoryState

public boolean fetchInMemoryState()
If true, the cache will fetch data from the neighboring caches when it starts up, so the cache starts 'warm', although it will impact startup time.

In distributed mode, state is transferred between running caches as well, as the ownership of keys changes (e.g. because a cache left the cluster). Disabling this setting means a key will sometimes have less than numOwner owners.


originalFetchInMemoryState

protected Boolean originalFetchInMemoryState()
We want to remember if the user didn't configure fetchInMemoryState for the default cache.


timeout

public long timeout()
This is the maximum amount of time - in milliseconds - to wait for state from neighboring caches, before throwing an exception and aborting startup.


timeout

public StateTransferConfiguration timeout(long l)
This is the maximum amount of time - in milliseconds - to wait for state from neighboring caches, before throwing an exception and aborting startup.


chunkSize

public int chunkSize()
If > 0, the state will be transferred in batches of chunkSize cache entries. If <= 0, the state will be transferred in all at once. Not recommended.


toString

public String toString()
Overrides:
toString in class Object

equals

public boolean equals(Object o)
Overrides:
equals in class Object

hashCode

public int hashCode()
Overrides:
hashCode in class Object

-->

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