public interface VCacheLifecycleManager
Handlers need to be provided that are called whenever a cache is about to be configured by the VCache implementation. Using these hooks, the host application can:
JvmCache
is being created.
RuntimeException. The
VCache implementation will propagate these exceptions to the original caller.
| Modifier and Type | Method and Description |
|---|---|
RequestMetrics |
metrics(RequestContext context)
Return the cache metrics for the supplied context.
|
Set<String> |
transactionDiscard(RequestContext context)
Discard the
TransactionalExternalCache's that are associated with the
supplied context. |
void |
transactionSync(RequestContext context)
Synchronise the
TransactionalExternalCache's that are associated with the
supplied context. |
void transactionSync(RequestContext context)
TransactionalExternalCache's that are associated with the
supplied context.context - the request context to synchronise.Set<String> transactionDiscard(RequestContext context)
TransactionalExternalCache's that are associated with the
supplied context.context - the request context to discard.RequestMetrics metrics(RequestContext context)
context - the request context to obtain metrics for.Copyright © 2019 Atlassian. All rights reserved.