org.infinispan.config
Interface Configuration.StateRetrievalConfig

All Known Implementing Classes:
Configuration.StateRetrievalType
Enclosing class:
Configuration

public static interface Configuration.StateRetrievalConfig

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

Since:
5.0
Author:
Vladimir Blagojevic

Method Summary
 Configuration.StateRetrievalConfig alwaysProvideInMemoryState(Boolean alwaysProvideInMemoryState)
          If true, this will allow the cache to provide in-memory state to a neighbor, even if the cache is not configured to fetch state from its neighbors (fetchInMemoryState is false)
 Configuration.StateRetrievalConfig fetchInMemoryState(Boolean fetchInMemoryState)
          If true, this will cause the cache to ask neighboring caches for state when it starts up, so the cache starts 'warm', although it will impact startup time.
 Configuration.StateRetrievalConfig initialRetryWaitTime(Long initialRetryWaitTime)
          Initial wait time when backing off before retrying state transfer retrieval
 Configuration.StateRetrievalConfig logFlushTimeout(Long logFlushTimeout)
          This is the maximum amount of time to run a cluster-wide flush, to allow for syncing of transaction logs.
 Configuration.StateRetrievalConfig maxNonProgressingLogWrites(Integer maxNonProgressingLogWrites)
          This is the maximum number of non-progressing transaction log writes after which a brute-force flush approach is resorted to, to synchronize transaction logs.
 Configuration.StateRetrievalConfig numRetries(Integer numRetries)
          Number of state retrieval retries before giving up and aborting startup.
 Configuration.StateRetrievalConfig retryWaitTimeIncreaseFactor(Integer retryWaitTimeIncreaseFactor)
          Wait time increase factor over successive state retrieval backoffs
 Configuration.StateRetrievalConfig timeout(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.
 

Method Detail

fetchInMemoryState

Configuration.StateRetrievalConfig fetchInMemoryState(Boolean fetchInMemoryState)
If true, this will cause the cache to ask neighboring caches for state when it starts up, so the cache starts 'warm', although it will impact startup time.

Parameters:
fetchInMemoryState -

alwaysProvideInMemoryState

Configuration.StateRetrievalConfig alwaysProvideInMemoryState(Boolean alwaysProvideInMemoryState)
If true, this will allow the cache to provide in-memory state to a neighbor, even if the cache is not configured to fetch state from its neighbors (fetchInMemoryState is false)

Parameters:
alwaysProvideInMemoryState -

initialRetryWaitTime

Configuration.StateRetrievalConfig initialRetryWaitTime(Long initialRetryWaitTime)
Initial wait time when backing off before retrying state transfer retrieval

Parameters:
initialRetryWaitTime -

retryWaitTimeIncreaseFactor

Configuration.StateRetrievalConfig retryWaitTimeIncreaseFactor(Integer retryWaitTimeIncreaseFactor)
Wait time increase factor over successive state retrieval backoffs

Parameters:
retryWaitTimeIncreaseFactor -

numRetries

Configuration.StateRetrievalConfig numRetries(Integer numRetries)
Number of state retrieval retries before giving up and aborting startup.

Parameters:
numRetries -

timeout

Configuration.StateRetrievalConfig timeout(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.

Parameters:
stateRetrievalTimeout -

logFlushTimeout

Configuration.StateRetrievalConfig logFlushTimeout(Long logFlushTimeout)
This is the maximum amount of time to run a cluster-wide flush, to allow for syncing of transaction logs.

Parameters:
logFlushTimeout -

maxNonProgressingLogWrites

Configuration.StateRetrievalConfig maxNonProgressingLogWrites(Integer maxNonProgressingLogWrites)
This is the maximum number of non-progressing transaction log writes after which a brute-force flush approach is resorted to, to synchronize transaction logs.

Parameters:
maxNonProgressingLogWrites -


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