V - the value type@PublicApi public interface DirectExternalCache<V> extends ExternalCache<V>, ExternalWriteOperationsUnbuffered<V>
ExternalCache where all operations are performed directly on the external cache system.
See the ExternalCache documentation for more information.| Modifier and Type | Method and Description |
|---|---|
CompletionStage<Map<String,Optional<IdentifiedValue<V>>>> |
getBulkIdentified(Iterable<String> keys)
Returns the
IdentifiedValue's that are associated with the specified keys. |
default CompletionStage<Map<String,Optional<IdentifiedValue<V>>>> |
getBulkIdentified(String... keys)
Returns the
IdentifiedValue's that are associated with the specified keys. |
CompletionStage<Optional<IdentifiedValue<V>>> |
getIdentified(String key)
Returns an identified value that is associated with a specified key.
|
CompletionStage<IdentifiedValue<V>> |
getIdentified(String key,
Supplier<V> supplier)
Returns an identified value that is associated with a specified key.
|
CompletionStage<Boolean> |
removeIf(String key,
CasIdentifier casId)
Removes the specified entry, iff the specified CAS identifier matches.
|
CompletionStage<Boolean> |
replaceIf(String key,
CasIdentifier casId,
V newValue)
Replaces the value for a specified entry, iff the specified CAS identifier matches.
|
get, get, getBulk, getBulk, getBulk, getBulkput, remove, remove, removeAllCompletionStage<Optional<IdentifiedValue<V>>> getIdentified(String key)
IdentifiedValue.identifier()
may be used in subsequent CAS operations, such as
removeIf(String, CasIdentifier) and
replaceIf(String, CasIdentifier, Object).key - the key to check.Optional which may contain the identified value associated with the key.CompletionStage<IdentifiedValue<V>> getIdentified(String key, Supplier<V> supplier)
IdentifiedValue.identifier()
may be used in subsequent CAS operations, such as
removeIf(String, CasIdentifier) and
replaceIf(String, CasIdentifier, Object).key - the key to check.supplier - used to generate the value, if one does not exist already for the key. The supplier may not
return null.Optional which may contain the identified value associated with the key.default CompletionStage<Map<String,Optional<IdentifiedValue<V>>>> getBulkIdentified(String... keys)
IdentifiedValue's that are associated with the specified keys. It is equivalent to calling
getBulkIdentified(Iterable) passing Arrays.asList(keys) as the parameter.keys - the keys to check.Map that is keyed on the keys specified. Each entry in the Map will have
Optional which may contain the IdentifiedValue associated with the key.CompletionStage<Map<String,Optional<IdentifiedValue<V>>>> getBulkIdentified(Iterable<String> keys)
IdentifiedValue's that are associated with the specified keys.keys - the keys to check.Map that is keyed on the keys specified. Each entry in the Map will have
Optional which may contain the IdentifiedValue associated with the key.CompletionStage<Boolean> removeIf(String key, CasIdentifier casId)
key - the key of the entry to removecasId - the CAS identifier to matchCompletionStage<Boolean> replaceIf(String key, CasIdentifier casId, V newValue)
key - the key of the entry to replace it's valuecasId - the CAS identifier to matchnewValue - the new value to replace withCopyright © 2019 Atlassian. All rights reserved.