public interface RequestCacheContext
| Modifier and Type | Method and Description |
|---|---|
void |
clearAll()
Clears all local storage for this thread.
|
void |
clearLocalMap(RequestCache<?,?> requestCache)
Clears a specific request cache's local storage for this thread.
|
void |
close()
Should be called to indicate the attempt to stop the context.
|
Map<Object,Object> |
getLocalMap(RequestCache<?,?> requestCache)
Returns the request-scoped storage for the given request cache.
|
Map<Object,Object> |
getLocalMapIfExists(RequestCache<?,?> requestCache)
Returns the request-scoped storage for the given request cache, if it exists.
|
void |
markValueLoading()
Mark the success of adding the value to map returned by
getLocalMap(RequestCache)
or getLocalMapIfExists(RequestCache) |
void |
open()
Should be called to indicate the start of the context.
|
@Nonnull Map<Object,Object> getLocalMap(RequestCache<?,?> requestCache)
requestCache - the cache for which to locate@Nullable Map<Object,Object> getLocalMapIfExists(RequestCache<?,?> requestCache)
requestCache - the cache for which to locatenull.void clearAll()
void clearLocalMap(RequestCache<?,?> requestCache)
requestCache - the cache for which to clear the current thread's local storagevoid open()
close()void close()
open()void markValueLoading()
getLocalMap(RequestCache)
or getLocalMapIfExists(RequestCache)Copyright © 2002-2021 Atlassian. All Rights Reserved.