@PublicApi
public interface VCacheFactory
Notes:
JvmCache's and RequestCache's are identified by their name and cache type. I.e. A
JvmCache called 'Williams' and a RequestCache called 'Williams' are
considered to be separate caches.
ExternalCache's are identified by their name and cache type.
A-Z, a-z, ./-_$.
| Modifier and Type | Method and Description |
|---|---|
<V> DirectExternalCache<V> |
getDirectExternalCache(String name,
Marshaller<V> valueMarshaller,
ExternalCacheSettings settings)
Obtains a
DirectExternalCache with the specified details. |
<K,V> JvmCache<K,V> |
getJvmCache(String name,
JvmCacheSettings settings)
Obtains a
JvmCache with the specified details. |
<K,V> RequestCache<K,V> |
getRequestCache(String name)
Obtains a
RequestCache with the specified details. |
<V> StableReadExternalCache<V> |
getStableReadExternalCache(String name,
Marshaller<V> valueMarshaller,
ExternalCacheSettings settings)
Obtains a
StableReadExternalCache with the specified details. |
<V> TransactionalExternalCache<V> |
getTransactionalExternalCache(String name,
Marshaller<V> valueMarshaller,
ExternalCacheSettings settings)
Obtains a
TransactionalExternalCache with the specified details. |
@Nonnull <K,V> JvmCache<K,V> getJvmCache(String name, JvmCacheSettings settings)
JvmCache with the specified details.K - the key typeV - the value typename - the name of the cachesettings - the settings for the cacheJvmCache with the specified details@Nonnull <K,V> RequestCache<K,V> getRequestCache(String name)
RequestCache with the specified details.K - the key typeV - the value typename - the name of the cacheRequestCache with the specified details@Nonnull <V> TransactionalExternalCache<V> getTransactionalExternalCache(String name, Marshaller<V> valueMarshaller, ExternalCacheSettings settings)
TransactionalExternalCache with the specified details.V - the value typename - the name of the cachevalueMarshaller - the marshaller for the values. See MarshallerFactory for provided implementations.settings - the settings for the cacheTransactionalExternalCache with the specified details@Nonnull <V> StableReadExternalCache<V> getStableReadExternalCache(String name, Marshaller<V> valueMarshaller, ExternalCacheSettings settings)
StableReadExternalCache with the specified details.V - the value typename - the name of the cachevalueMarshaller - the marshaller for the values.
See MarshallerFactory for provided implementations.settings - the settings for the cacheStableReadExternalCache with the specified details@Nonnull <V> DirectExternalCache<V> getDirectExternalCache(String name, Marshaller<V> valueMarshaller, ExternalCacheSettings settings)
DirectExternalCache with the specified details.V - the value typename - the name of the cachevalueMarshaller - the marshaller for the values.
See MarshallerFactory for provided implementations.settings - the settings for the cacheDirectExternalCache with the specified detailsCopyright © 2015 Atlassian. All rights reserved.