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 |
|---|---|
CompletableFuture<Map<String,Optional<IdentifiedValue<V>>>> |
getBulkIdentified(Iterable<String> keys) |
default CompletableFuture<Map<String,Optional<IdentifiedValue<V>>>> |
getBulkIdentified(String... keys) |
CompletableFuture<Optional<IdentifiedValue<V>>> |
getIdentified(String key)
Returns an identified value that is associated with a specified key.
|
CompletableFuture<Boolean> |
removeIf(String key,
CasIdentifier casId)
Removes the specified entry, iff the specified CAS identifier matches.
|
CompletableFuture<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, removeAll@Nonnull CompletableFuture<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.@Nonnull default CompletableFuture<Map<String,Optional<IdentifiedValue<V>>>> getBulkIdentified(String... keys)
@Nonnull CompletableFuture<Map<String,Optional<IdentifiedValue<V>>>> getBulkIdentified(Iterable<String> keys)
@Nonnull CompletableFuture<Boolean> removeIf(String key, CasIdentifier casId)
key - the key of the entry to removecasId - the CAS identifier to match@Nonnull CompletableFuture<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 © 2015 Atlassian. All rights reserved.