public class ArcacheClientFactoryBean extends Object implements org.springframework.beans.factory.FactoryBean<ArcacheClient>, org.springframework.beans.factory.InitializingBean, org.springframework.beans.factory.DisposableBean, ArcacheConfigurationSetInterface
| Constructor and Description |
|---|
ArcacheClientFactoryBean() |
| Modifier and Type | Method and Description |
|---|---|
void |
afterPropertiesSet() |
void |
destroy() |
ArcacheClient |
getObject() |
Class<?> |
getObjectType() |
boolean |
isSingleton() |
void |
setBackendClient(ArcacheBackendClient backendClient) |
void |
setDefaultExpirationTime(long expirationTimeSecs)
Sets the default value to be used to consider a cached object expired
|
void |
setDefaultHardInvalidation(boolean hardInvalidation) |
void |
setDefaultInvalidationWindow(long windowSecs)
set the default invalidation window, this is the ammount of time to do
probabilistic invalidation.
|
void |
setDefaultOperationTimeout(long timeoutMillis) |
void |
setDefaultStoredObjectRemovalTime(long removeTimeSecs)
Sets the default value to be used to set the lifetime of the object at
backend level.
|
void |
setKeyDelimiter(String keyDelimiter)
Permite configurar un delimitador default para las keys el mismo sera
utilizado par separar las keys de invalidacion y el namespace
|
void |
setKeyNamespace(String namespace)
Permite configurar un namsepace default para todas las keys De esta forma se
puede evitar la colision de keys con otro servicio
|
void |
setTimeMeasurementError(long errorSecs)
Error total en la medicion de tiempos expresado en segundos debe ser 1 +
maxClockOffset + maxKeyCreationTime maxClockOffset (diferencia maxima entre 2
relojes de la infraestructura involucrada) maxKeyCreationTime (Tiempo (95pt)
que demanda generar un valor a ser almacenado)
|
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 ArcacheClient getObject() throws Exception
getObject in interface org.springframework.beans.factory.FactoryBean<ArcacheClient>Exceptionpublic Class<?> getObjectType()
getObjectType in interface org.springframework.beans.factory.FactoryBean<ArcacheClient>public boolean isSingleton()
isSingleton in interface org.springframework.beans.factory.FactoryBean<ArcacheClient>public void setDefaultOperationTimeout(long timeoutMillis)
setDefaultOperationTimeout in interface ArcacheConfigurationSetInterfacetimeoutMillis - timeoutMillis the default timeout to be used in backend
operationspublic void setTimeMeasurementError(long errorSecs)
ArcacheConfigurationSetInterfacesetTimeMeasurementError in interface ArcacheConfigurationSetInterfaceerrorSecs - the time measurament error in secondspublic void setDefaultInvalidationWindow(long windowSecs)
ArcacheConfigurationSetInterfacesetDefaultInvalidationWindow in interface ArcacheConfigurationSetInterfacewindowSecs - invalidation window in secondspublic void setDefaultHardInvalidation(boolean hardInvalidation)
setDefaultHardInvalidation in interface ArcacheConfigurationSetInterfacehardInvalidation - default type of invalidation to be usedpublic void setKeyNamespace(String namespace)
ArcacheConfigurationSetInterfacesetKeyNamespace in interface ArcacheConfigurationSetInterfacenamespace - ...public void setKeyDelimiter(String keyDelimiter)
ArcacheConfigurationSetInterfacesetKeyDelimiter in interface ArcacheConfigurationSetInterfacekeyDelimiter - ...public void setDefaultExpirationTime(long expirationTimeSecs)
ArcacheConfigurationSetInterfacesetDefaultExpirationTime in interface ArcacheConfigurationSetInterfaceexpirationTimeSecs - ...public void setDefaultStoredObjectRemovalTime(long removeTimeSecs)
ArcacheConfigurationSetInterfacesetDefaultStoredObjectRemovalTime in interface ArcacheConfigurationSetInterfaceremoveTimeSecs - ...public void setBackendClient(ArcacheBackendClient backendClient)
setBackendClient in interface ArcacheConfigurationSetInterfaceCopyright © 2019. All rights reserved.