public final class RxTransactionWrapper extends Object implements RxTransaction
RxTransaction.| Constructor and Description |
|---|
RxTransactionWrapper(Transaction wrapped)
Ctor.
|
| Modifier and Type | Method and Description |
|---|---|
io.reactivex.Completable |
commit()
A reactive version of
Transaction.commit(). |
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 |
rollback()
A reactive version of
Transaction.rollback(). |
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 RxTransactionWrapper(Transaction wrapped)
wrapped - The storage to wrapppublic io.reactivex.Completable commit()
RxTransactionTransaction.commit().commit in interface RxTransactionpublic io.reactivex.Completable rollback()
RxTransactionTransaction.rollback().rollback in interface RxTransactionpublic io.reactivex.Single<Boolean> exists(Key key)
RxStoragepublic io.reactivex.Single<Collection<Key>> list(Key prefix)
RxStoragepublic io.reactivex.Completable save(Key key, Content content)
RxStoragepublic io.reactivex.Completable move(Key source, Key destination)
RxStoragepublic io.reactivex.Single<Long> size(Key key)
RxStoragepublic io.reactivex.Single<Content> value(Key key)
RxStoragepublic io.reactivex.Completable delete(Key key)
RxStoragepublic io.reactivex.Single<RxTransaction> transaction(List<Key> keys)
RxStoragetransaction in interface RxStoragekeys - The keys regarding which transaction is atomicCopyright © 2019–2020 jcabi.com. All rights reserved.