public class ArcacheSpeedupClientFactoryBean extends Object implements org.springframework.beans.factory.FactoryBean<ArcacheSpeedupClient>, org.springframework.beans.factory.InitializingBean, org.springframework.beans.factory.DisposableBean, ArcacheSpeedupConfigurationSetInterface
| Modifier and Type | Field and Description |
|---|---|
protected ArcacheSpeedupClient |
client |
| Constructor and Description |
|---|
ArcacheSpeedupClientFactoryBean() |
| Modifier and Type | Method and Description |
|---|---|
void |
afterPropertiesSet() |
void |
destroy() |
ArcacheSpeedupClient |
getObject() |
Class<?> |
getObjectType() |
boolean |
isSingleton() |
void |
setBackendClient(ArcacheBackendClient backendClient)
Set the inner backend client
|
void |
setCacheIsolation(boolean cacheIsolation)
Enable the cache isolation (disabled by default), when cache isolation is
enabled, the stored objects are immutable but with an performance cost.
|
void |
setExpirationProbabilityFunction(ProbabilityFunction probabilityFunction)
Set the probability function to be used in expiration evaluation
|
void |
setInvalidationKeysCacheSize(int cacheSize)
Set the maximum size of invalidationKeys Cache in number of elements
|
void |
setInvalidationKeysExpirationMillis(long expirationMillis)
Set the expiration of the stored values in milliseconds
|
void |
setMissesCacheSize(int cacheSize)
Set the maximum size of misses Cache in number of elements
|
void |
setMissesExpirationMillis(long expirationMillis)
Set the expiration of the stored values in milliseconds
|
void |
setObjectsCacheSize(int cacheSize)
Set the maximum size of objects Cache in number of elements
|
void |
setObjectsExpirationMillis(long expirationMillis)
Set the expiration of the stored values in milliseconds
|
void |
setProtectAgainstBackendFailures(boolean protect)
Allow some protection against backend failures.
|
void |
setSpeedupCacheTTLMillis(long ttlMillis)
Set the speedup cache ttl in milli seconds, this value must be restricted by
the cache size, the ttl is allowed to make a hard expiration if its needed.
|
void |
setTracker(ArcacheSpeedupTracker tracker)
Set a tracker to keep control of speedup performance and malfunctions
|
protected ArcacheSpeedupClient client
public void destroy()
throws Exception
destroy in interface org.springframework.beans.factory.DisposableBeanExceptionpublic void afterPropertiesSet()
throws Exception
afterPropertiesSet in interface org.springframework.beans.factory.InitializingBeanExceptionpublic ArcacheSpeedupClient getObject() throws Exception
getObject in interface org.springframework.beans.factory.FactoryBean<ArcacheSpeedupClient>Exceptionpublic Class<?> getObjectType()
getObjectType in interface org.springframework.beans.factory.FactoryBean<ArcacheSpeedupClient>public boolean isSingleton()
isSingleton in interface org.springframework.beans.factory.FactoryBean<ArcacheSpeedupClient>public void setBackendClient(ArcacheBackendClient backendClient)
ArcacheSpeedupConfigurationSetInterfacesetBackendClient in interface ArcacheSpeedupConfigurationSetInterfacepublic void setInvalidationKeysCacheSize(int cacheSize)
ArcacheSpeedupConfigurationSetInterfacesetInvalidationKeysCacheSize in interface ArcacheSpeedupConfigurationSetInterfacepublic void setObjectsCacheSize(int cacheSize)
ArcacheSpeedupConfigurationSetInterfacesetObjectsCacheSize in interface ArcacheSpeedupConfigurationSetInterfacepublic void setMissesCacheSize(int cacheSize)
ArcacheSpeedupConfigurationSetInterfacesetMissesCacheSize in interface ArcacheSpeedupConfigurationSetInterfacepublic void setInvalidationKeysExpirationMillis(long expirationMillis)
ArcacheSpeedupConfigurationSetInterfacesetInvalidationKeysExpirationMillis in interface ArcacheSpeedupConfigurationSetInterfacepublic void setObjectsExpirationMillis(long expirationMillis)
ArcacheSpeedupConfigurationSetInterfacesetObjectsExpirationMillis in interface ArcacheSpeedupConfigurationSetInterfacepublic void setMissesExpirationMillis(long expirationMillis)
ArcacheSpeedupConfigurationSetInterfacesetMissesExpirationMillis in interface ArcacheSpeedupConfigurationSetInterfacepublic void setProtectAgainstBackendFailures(boolean protect)
ArcacheSpeedupConfigurationSetInterfacesetProtectAgainstBackendFailures in interface ArcacheSpeedupConfigurationSetInterfacepublic void setSpeedupCacheTTLMillis(long ttlMillis)
ArcacheSpeedupConfigurationSetInterfacesetSpeedupCacheTTLMillis in interface ArcacheSpeedupConfigurationSetInterfacepublic void setExpirationProbabilityFunction(ProbabilityFunction probabilityFunction)
ArcacheSpeedupConfigurationSetInterfacesetExpirationProbabilityFunction in interface ArcacheSpeedupConfigurationSetInterfacepublic void setTracker(ArcacheSpeedupTracker tracker)
ArcacheSpeedupConfigurationSetInterfacesetTracker in interface ArcacheSpeedupConfigurationSetInterfacepublic void setCacheIsolation(boolean cacheIsolation)
ArcacheSpeedupConfigurationSetInterfacesetCacheIsolation in interface ArcacheSpeedupConfigurationSetInterfaceCopyright © 2019. All rights reserved.