public class RedisVCacheService extends AbstractVCacheService
externalCacheKeyGenerator, lockTimeout, metricsCollector, threadLocalContextSupplier, transactionControlManager, workContextContextSupplier| Constructor and Description |
|---|
RedisVCacheService(String productIdentifier,
Supplier<redis.clients.jedis.Jedis> clientSupplier,
Supplier<RequestContext> threadLocalContextSupplier,
Supplier<RequestContext> workContextContextSupplier,
VCacheSettingsDefaultsProvider defaultsProvider,
VCacheCreationHandler creationHandler,
MetricsCollector metricsCollector,
BegunTransactionalActivityHandler begunTransactionalActivityHandler,
Duration lockTimeout)
Creates an instance, with the default
ExternalCacheKeyGenerator. |
RedisVCacheService(Supplier<redis.clients.jedis.Jedis> clientSupplier,
Supplier<RequestContext> threadLocalContextSupplier,
Supplier<RequestContext> workContextContextSupplier,
VCacheSettingsDefaultsProvider defaultsProvider,
VCacheCreationHandler creationHandler,
MetricsCollector metricsCollector,
ExternalCacheKeyGenerator externalCacheKeyGenerator,
BegunTransactionalActivityHandler begunTransactionalActivityHandler,
Duration lockTimeout)
Creates an instance, with a supplied
ExternalCacheKeyGenerator. |
| Modifier and Type | Method and Description |
|---|---|
protected <V> DirectExternalCache<V> |
createDirectExternalCache(String name,
ExternalCacheSettings settings,
com.atlassian.marshalling.api.MarshallingPair<V> valueMarshalling,
boolean valueSerializable)
Creates a
DirectExternalCache with the supplied parameters. |
protected <K,V> JvmCache<K,V> |
createJvmCache(String name,
JvmCacheSettings settings)
Creates a
JvmCache with the supplied parameters. |
protected <V> StableReadExternalCache<V> |
createStableReadExternalCache(String name,
ExternalCacheSettings settings,
com.atlassian.marshalling.api.MarshallingPair<V> valueMarshalling,
boolean valueSerializable)
Creates a
StableReadExternalCache with the supplied parameters. |
protected <V> TransactionalExternalCache<V> |
createTransactionalExternalCache(String name,
ExternalCacheSettings settings,
com.atlassian.marshalling.api.MarshallingPair<V> valueMarshalling,
boolean valueSerializable)
Creates a
TransactionalExternalCache with the supplied parameters. |
protected org.slf4j.Logger |
log()
Returns the logger for the implementation service.
|
allExternalCacheDetails, allJvmCacheDetails, allRequestCacheDetails, getDirectExternalCache, getDirectExternalCache, getJvmCache, getRequestCache, getStableReadExternalCache, getStableReadExternalCache, getTransactionalExternalCache, getTransactionalExternalCache, metrics, transactionDiscard, transactionSyncclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetRequestCachepublic RedisVCacheService(String productIdentifier, Supplier<redis.clients.jedis.Jedis> clientSupplier, Supplier<RequestContext> threadLocalContextSupplier, Supplier<RequestContext> workContextContextSupplier, VCacheSettingsDefaultsProvider defaultsProvider, VCacheCreationHandler creationHandler, MetricsCollector metricsCollector, BegunTransactionalActivityHandler begunTransactionalActivityHandler, Duration lockTimeout)
ExternalCacheKeyGenerator.productIdentifier - the unique product identifier, such as jira or confluenceclientSupplier - the supplier for the Memcached clientthreadLocalContextSupplier - the supplier for the request context.workContextContextSupplier - A supplier of a thread safe request context.defaultsProvider - the cache defaults providercreationHandler - the handler called when caches are being created.metricsCollector - the collector for gathering metrics.public RedisVCacheService(Supplier<redis.clients.jedis.Jedis> clientSupplier, Supplier<RequestContext> threadLocalContextSupplier, Supplier<RequestContext> workContextContextSupplier, VCacheSettingsDefaultsProvider defaultsProvider, VCacheCreationHandler creationHandler, MetricsCollector metricsCollector, ExternalCacheKeyGenerator externalCacheKeyGenerator, BegunTransactionalActivityHandler begunTransactionalActivityHandler, Duration lockTimeout)
ExternalCacheKeyGenerator.clientSupplier - the supplier for the Memcached clientthreadLocalContextSupplier - the supplier for the request context.workContextContextSupplier - A supplier of a thread safe request context.defaultsProvider - the cache defaults providercreationHandler - the handler called when caches are being created.metricsCollector - the collector for gathering metrics.protected org.slf4j.Logger log()
AbstractVCacheServicelog in class AbstractVCacheServiceprotected <K,V> JvmCache<K,V> createJvmCache(String name, JvmCacheSettings settings)
AbstractVCacheServiceJvmCache with the supplied parameters.createJvmCache in class AbstractVCacheServiceK - the key typeV - the value typename - the name of the cachesettings - the setting for the cacheJvmCacheprotected <V> TransactionalExternalCache<V> createTransactionalExternalCache(String name, ExternalCacheSettings settings, com.atlassian.marshalling.api.MarshallingPair<V> valueMarshalling, boolean valueSerializable)
AbstractVCacheServiceTransactionalExternalCache with the supplied parameters.createTransactionalExternalCache in class AbstractVCacheServiceV - the value typename - the name of the cachesettings - the settings for the cachevalueMarshalling - the marshalling pair for valuesvalueSerializable - whether the values are SerializableTransactionalExternalCacheprotected <V> StableReadExternalCache<V> createStableReadExternalCache(String name, ExternalCacheSettings settings, com.atlassian.marshalling.api.MarshallingPair<V> valueMarshalling, boolean valueSerializable)
AbstractVCacheServiceStableReadExternalCache with the supplied parameters.createStableReadExternalCache in class AbstractVCacheServiceV - the value typename - the name of the cachesettings - the settings for the cachevalueMarshalling - the marshalling pair for valuesvalueSerializable - whether the values are SerializableStableReadExternalCacheprotected <V> DirectExternalCache<V> createDirectExternalCache(String name, ExternalCacheSettings settings, com.atlassian.marshalling.api.MarshallingPair<V> valueMarshalling, boolean valueSerializable)
AbstractVCacheServiceDirectExternalCache with the supplied parameters.createDirectExternalCache in class AbstractVCacheServiceV - the value typename - the name of the cachesettings - the settings for the cachevalueMarshalling - the marshalling pair for valuesvalueSerializable - whether the values are SerializableDirectExternalCacheCopyright © 2019 Atlassian. All rights reserved.