|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.infinispan.config.AbstractConfigurationBean
org.infinispan.config.AbstractNamedCacheConfigurationBean
org.infinispan.config.Configuration.StateRetrievalType
public static class Configuration.StateRetrievalType
Configures how state is retrieved when a new cache joins the cluster. This element is only used with invalidation and replication clustered modes.
Field Summary | |
---|---|
protected Boolean |
alwaysProvideInMemoryState
|
protected Boolean |
fetchInMemoryState
|
protected Long |
initialRetryWaitTime
|
protected Long |
logFlushTimeout
|
protected Integer |
maxNonProgressingLogWrites
|
protected Integer |
numRetries
|
protected Integer |
retryWaitTimeIncreaseFactor
|
protected Long |
timeout
|
Fields inherited from class org.infinispan.config.AbstractNamedCacheConfigurationBean |
---|
cr |
Fields inherited from class org.infinispan.config.AbstractConfigurationBean |
---|
EMPTY_PROPERTIES, log, overriddenConfigurationElements |
Constructor Summary | |
---|---|
Configuration.StateRetrievalType()
|
Method Summary | |
---|---|
void |
accept(ConfigurationBeanVisitor v)
|
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) |
boolean |
equals(Object o)
|
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. |
int |
hashCode()
|
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 |
void |
setAlwaysProvideInMemoryState(Boolean alwaysProvideInMemoryState)
|
void |
setFetchInMemoryState(Boolean fetchInMemoryState)
|
void |
setInitialRetryWaitTime(Long initialRetryWaitTime)
|
void |
setLogFlushTimeout(Long logFlushTimeout)
|
void |
setMaxNonProgressingLogWrites(Integer maxNonProgressingLogWrites)
|
void |
setNumRetries(Integer numRetries)
|
void |
setRetryWaitTimeIncreaseFactor(Integer retryWaitTimeIncreaseFactor)
|
void |
setTimeout(Long 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. |
Methods inherited from class org.infinispan.config.AbstractNamedCacheConfigurationBean |
---|
clone, hasComponentStarted, inject |
Methods inherited from class org.infinispan.config.AbstractConfigurationBean |
---|
testImmutability, toTypedProperties, toTypedProperties, uc, willUnmarshall |
Methods inherited from class java.lang.Object |
---|
finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
@Dynamic protected Boolean fetchInMemoryState
protected Boolean alwaysProvideInMemoryState
@Dynamic protected Long timeout
protected Long initialRetryWaitTime
protected Integer retryWaitTimeIncreaseFactor
protected Integer numRetries
protected Long logFlushTimeout
protected Integer maxNonProgressingLogWrites
Constructor Detail |
---|
public Configuration.StateRetrievalType()
Method Detail |
---|
public void setFetchInMemoryState(Boolean fetchInMemoryState)
public void setAlwaysProvideInMemoryState(Boolean alwaysProvideInMemoryState)
public void setInitialRetryWaitTime(Long initialRetryWaitTime)
public void setRetryWaitTimeIncreaseFactor(Integer retryWaitTimeIncreaseFactor)
public void setNumRetries(Integer numRetries)
public void setTimeout(Long timeout)
public void setLogFlushTimeout(Long logFlushTimeout)
public void setMaxNonProgressingLogWrites(Integer maxNonProgressingLogWrites)
public Configuration.StateRetrievalConfig fetchInMemoryState(Boolean fetchInMemoryState)
Configuration.StateRetrievalConfig
fetchInMemoryState
in interface Configuration.StateRetrievalConfig
public Configuration.StateRetrievalConfig alwaysProvideInMemoryState(Boolean alwaysProvideInMemoryState)
Configuration.StateRetrievalConfig
alwaysProvideInMemoryState
in interface Configuration.StateRetrievalConfig
public Configuration.StateRetrievalConfig initialRetryWaitTime(Long initialRetryWaitTime)
Configuration.StateRetrievalConfig
initialRetryWaitTime
in interface Configuration.StateRetrievalConfig
public Configuration.StateRetrievalConfig retryWaitTimeIncreaseFactor(Integer retryWaitTimeIncreaseFactor)
Configuration.StateRetrievalConfig
retryWaitTimeIncreaseFactor
in interface Configuration.StateRetrievalConfig
public Configuration.StateRetrievalConfig numRetries(Integer numRetries)
Configuration.StateRetrievalConfig
numRetries
in interface Configuration.StateRetrievalConfig
public Configuration.StateRetrievalConfig timeout(Long timeout)
Configuration.StateRetrievalConfig
timeout
in interface Configuration.StateRetrievalConfig
public Configuration.StateRetrievalConfig logFlushTimeout(Long logFlushTimeout)
Configuration.StateRetrievalConfig
logFlushTimeout
in interface Configuration.StateRetrievalConfig
public Configuration.StateRetrievalConfig maxNonProgressingLogWrites(Integer maxNonProgressingLogWrites)
Configuration.StateRetrievalConfig
maxNonProgressingLogWrites
in interface Configuration.StateRetrievalConfig
public void accept(ConfigurationBeanVisitor v)
public boolean equals(Object o)
equals
in class Object
public int hashCode()
hashCode
in class Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |