@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, 0-9, ./-_$.
| Modifier and Type | Method and Description |
|---|---|
<V> DirectExternalCache<V> |
getDirectExternalCache(String name,
Marshaller<V> valueMarshaller,
ExternalCacheSettings settings)
Deprecated.
|
<V> DirectExternalCache<V> |
getDirectExternalCache(String name,
com.atlassian.marshalling.api.MarshallingPair<V> valueMarshalling,
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)
Deprecated.
|
<V> StableReadExternalCache<V> |
getStableReadExternalCache(String name,
com.atlassian.marshalling.api.MarshallingPair<V> valueMarshalling,
ExternalCacheSettings settings)
Obtains a
StableReadExternalCache with the specified details. |
<V> TransactionalExternalCache<V> |
getTransactionalExternalCache(String name,
Marshaller<V> valueMarshaller,
ExternalCacheSettings settings)
Deprecated.
|
<V> TransactionalExternalCache<V> |
getTransactionalExternalCache(String name,
com.atlassian.marshalling.api.MarshallingPair<V> valueMarshalling,
ExternalCacheSettings settings)
Obtains a
TransactionalExternalCache with the specified details. |
<K,V> JvmCache<K,V> getJvmCache(String name, JvmCacheSettings settings)
JvmCache with the specified details.
Note: multiple calls to this method will always return the instance created on the first invocation. As such, any changes in the supplied settings will be ignored.
K - the key typeV - the value typename - the name of the cachesettings - the settings for the cacheJvmCache with the specified details<K,V> RequestCache<K,V> getRequestCache(String name)
RequestCache with the specified details.
Note: multiple calls to this method will always return the instance created on the first invocation.
K - the key typeV - the value typename - the name of the cacheRequestCache with the specified details@Deprecated <V> TransactionalExternalCache<V> getTransactionalExternalCache(String name, Marshaller<V> valueMarshaller, ExternalCacheSettings settings)
getTransactionalExternalCache(String, MarshallingPair, ExternalCacheSettings)TransactionalExternalCache with the specified details.
Note: each call to this method will return a new instance using the specified settings. However, the existing data stored in the external cache will remain. It is not expected in a production configuration that this method will be called multiple times, but is allowed is a development configuration.
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<V> TransactionalExternalCache<V> getTransactionalExternalCache(String name, com.atlassian.marshalling.api.MarshallingPair<V> valueMarshalling, ExternalCacheSettings settings)
TransactionalExternalCache with the specified details.
Note: each call to this method will return a new instance using the specified settings. However, the existing data stored in the external cache will remain. It is not expected in a production configuration that this method will be called multiple times, but is allowed is a development configuration.
V - the value typename - the name of the cachevalueMarshalling - the marshaller for the values.settings - the settings for the cacheTransactionalExternalCache with the specified details@Deprecated <V> StableReadExternalCache<V> getStableReadExternalCache(String name, Marshaller<V> valueMarshaller, ExternalCacheSettings settings)
getStableReadExternalCache(String, MarshallingPair, ExternalCacheSettings)StableReadExternalCache with the specified details.
Note: each call to this method will return a new instance using the specified settings. However, the existing data stored in the external cache will remain. It is not expected in a production configuration that this method will be called multiple times, but is allowed is a development configuration.
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<V> StableReadExternalCache<V> getStableReadExternalCache(String name, com.atlassian.marshalling.api.MarshallingPair<V> valueMarshalling, ExternalCacheSettings settings)
StableReadExternalCache with the specified details.
Note: each call to this method will return a new instance using the specified settings. However, the existing data stored in the external cache will remain. It is not expected in a production configuration that this method will be called multiple times, but is allowed is a development configuration.
V - the value typename - the name of the cachevalueMarshalling - the marshalling pair for the values.settings - the settings for the cacheStableReadExternalCache with the specified details@Deprecated <V> DirectExternalCache<V> getDirectExternalCache(String name, Marshaller<V> valueMarshaller, ExternalCacheSettings settings)
getDirectExternalCache(String, MarshallingPair, ExternalCacheSettings)DirectExternalCache with the specified details.
Note: each call to this method will return a new instance using the specified settings. However, the existing data stored in the external cache will remain. It is not expected in a production configuration that this method will be called multiple times, but is allowed is a development configuration.
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 details<V> DirectExternalCache<V> getDirectExternalCache(String name, com.atlassian.marshalling.api.MarshallingPair<V> valueMarshalling, ExternalCacheSettings settings)
DirectExternalCache with the specified details.
Note: each call to this method will return a new instance using the specified settings. However, the existing data stored in the external cache will remain. It is not expected in a production configuration that this method will be called multiple times, but is allowed is a development configuration.
V - the value typename - the name of the cachevalueMarshalling - the marshalling pair to be used for marshalling.settings - the settings for the cacheDirectExternalCache with the specified detailsCopyright © 2016 Atlassian. All rights reserved.