Storage.Wrap| Modifier | Constructor and Description |
|---|---|
protected |
Wrap(Storage delegate)
Ctor.
|
| Modifier and Type | Method and Description |
|---|---|
CompletableFuture<Void> |
delete(Key key)
Removes value from storage.
|
CompletableFuture<Boolean> |
exists(Key key)
This file exists?
|
CompletableFuture<Collection<Key>> |
list(Key prefix)
Return the list of keys that start with this prefix, for
example "foo/bar/".
|
CompletableFuture<Void> |
move(Key source,
Key destination)
Moves value from one location to another.
|
CompletableFuture<Void> |
save(Key key,
Content content)
Saves the bytes to the specified key.
|
CompletableFuture<Long> |
size(Key key)
Get value size.
|
CompletableFuture<Transaction> |
transaction(List<Key> keys)
Start a transaction with specified keys.
|
CompletableFuture<Content> |
value(Key key)
Obtain bytes by key.
|
protected Wrap(Storage delegate)
delegate - Delegate storagepublic final CompletableFuture<Boolean> exists(Key key)
Storagepublic final CompletableFuture<Collection<Key>> list(Key prefix)
Storagepublic final CompletableFuture<Void> save(Key key, Content content)
Storagepublic final CompletableFuture<Void> move(Key source, Key destination)
Storagepublic final CompletableFuture<Long> size(Key key)
Storagepublic final CompletableFuture<Content> value(Key key)
Storagepublic final CompletableFuture<Void> delete(Key key)
Storagepublic final CompletableFuture<Transaction> transaction(List<Key> keys)
StorageStorage.save(Key, Content) or Storage.value(Key) only in
the scope of a transaction.transaction in interface Storagekeys - The keys regarding which transaction is atomicCopyright © 2019–2020 jcabi.com. All rights reserved.