public interface RxStorage
Storage.| Modifier and Type | Method and Description |
|---|---|
io.reactivex.Completable |
delete(Key key)
Removes value from storage.
|
io.reactivex.Single<Boolean> |
exists(Key key)
This file exists?
|
io.reactivex.Single<Collection<Key>> |
list(Key prefix)
Return the list of keys that start with this prefix, for
example "foo/bar/".
|
io.reactivex.Completable |
move(Key source,
Key destination)
Moves value from one location to another.
|
io.reactivex.Completable |
save(Key key,
Content content)
Saves the bytes to the specified key.
|
io.reactivex.Single<Long> |
size(Key key)
Get value size.
|
io.reactivex.Single<RxTransaction> |
transaction(List<Key> keys)
Start a transaction with specified keys.
|
io.reactivex.Single<Content> |
value(Key key)
Obtain bytes by key.
|
io.reactivex.Single<Boolean> exists(Key key)
key - The key (file name)io.reactivex.Single<Collection<Key>> list(Key prefix)
prefix - The prefix.io.reactivex.Completable save(Key key, Content content)
key - The keycontent - Bytes to saveio.reactivex.Completable move(Key source, Key destination)
source - Source key.destination - Destination key.io.reactivex.Single<Long> size(Key key)
key - The key of value.io.reactivex.Single<Content> value(Key key)
key - The keyio.reactivex.Completable delete(Key key)
key - Key for value to be deleted.io.reactivex.Single<RxTransaction> transaction(List<Key> keys)
keys - The keys regarding which transaction is atomicCopyright © 2019–2020 jcabi.com. All rights reserved.