@PublicApi
public interface CachedReference<V>
| Modifier and Type | Method and Description |
|---|---|
void |
addListener(CachedReferenceListener<V> listener,
boolean includeValues)
Deprecated.
since 2.9 may not be supported in all implementations
|
V |
get()
Get a value from the cache.
|
void |
removeListener(CachedReferenceListener<V> listener)
Deprecated.
since 2.9 may not be supported in all implementations
|
void |
reset()
Resets (clears/invalidates) this reference.
|
void reset()
@Deprecated void addListener(@Nonnull CachedReferenceListener<V> listener, boolean includeValues)
CachedReferenceListenerlistener - the listenerincludeValues - if the events sent to this listener will include old/new value. This can be used in cases
when the cost of finding these values is big (network sync) but the listener is not interested in the concrete
values for events its getting. The support for this parameter is optional and implementation dependentUnsupportedOperationException - if not supported@Deprecated void removeListener(@Nonnull CachedReferenceListener<V> listener)
CachedReferenceListenerlistener - the listenerUnsupportedOperationException - if not supportedCopyright © 2018 Atlassian. All rights reserved.