V - the value type.public class GuavaTransactionalExternalCache<V> extends AbstractTransactionalExternalCache<V>
TransactionalExternalCache.contextSupplier, metricsRecorderlockTimeout, name| Constructor and Description |
|---|
GuavaTransactionalExternalCache(String name,
com.google.common.cache.Cache<String,IdentifiedData> delegate,
Supplier<RequestContext> contextSupplier,
ExternalCacheKeyGenerator keyGenerator,
Optional<com.atlassian.marshalling.api.MarshallingPair<V>> valueMarshalling,
TransactionControlManager transactionControlManager,
MetricsRecorder metricsRecorder,
Duration lockTimeout) |
| Modifier and Type | Method and Description |
|---|---|
protected Optional<V> |
directGet(String externalKey)
Performs a direct get operation against the external cache using the supplied external key.
|
protected Map<String,Optional<V>> |
directGetBulk(Set<String> externalKeys)
Performs a direct bulk get operation against the external cache using the supplied external keys.
|
protected AbstractExternalCacheRequestContext<V> |
ensureCacheContext()
Returns the cache context for the current request.
|
protected org.slf4j.Logger |
getLogger()
Returns the logging instance for the implementation class.
|
protected ExternalCacheException |
mapException(Exception ex)
Maps a generic
Exception to a corresponding ExternalCacheException. |
void |
transactionSync()
Synchronize any changes.
|
get, get, getBulk, getBulk, put, remove, removeAll, transactionDiscardgetName, perform, performclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetBulk, getBulkremovepublic GuavaTransactionalExternalCache(String name, com.google.common.cache.Cache<String,IdentifiedData> delegate, Supplier<RequestContext> contextSupplier, ExternalCacheKeyGenerator keyGenerator, Optional<com.atlassian.marshalling.api.MarshallingPair<V>> valueMarshalling, TransactionControlManager transactionControlManager, MetricsRecorder metricsRecorder, Duration lockTimeout)
public void transactionSync()
TransactionControlprotected AbstractExternalCacheRequestContext<V> ensureCacheContext()
AbstractExternalCacheensureCacheContext in class AbstractExternalCache<V>protected org.slf4j.Logger getLogger()
AbstractExternalCachegetLogger in class AbstractExternalCache<V>protected final ExternalCacheException mapException(Exception ex)
AbstractExternalCacheException to a corresponding ExternalCacheException.mapException in class AbstractExternalCache<V>protected final Optional<V> directGet(String externalKey)
AbstractTransactionalExternalCachedirectGet in class AbstractTransactionalExternalCache<V>protected final Map<String,Optional<V>> directGetBulk(Set<String> externalKeys)
AbstractTransactionalExternalCachedirectGetBulk in class AbstractTransactionalExternalCache<V>Copyright © 2016 Atlassian. All rights reserved.