| Constructor and Description |
|---|
RxStorageWrapper(Storage storage)
Ctor.
|
| 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.
|
public RxStorageWrapper(Storage storage)
storage - The storagepublic io.reactivex.Single<Collection<Key>> list(Key prefix)
RxStoragepublic io.reactivex.Completable save(Key key, Content content)
public io.reactivex.Completable move(Key source, Key destination)
RxStoragepublic io.reactivex.Single<Long> size(Key key)
RxStoragepublic io.reactivex.Completable delete(Key key)
RxStoragepublic io.reactivex.Single<RxTransaction> transaction(List<Key> keys)
RxStorage.save(Key, Content) or RxStorage.value(Key) only in
the scope of a transaction.transaction in interface RxStoragekeys - The keys regarding which transaction is atomicCopyright © 2019–2020 jcabi.com. All rights reserved.