public interface RealLiveTable extends SafeRealLiveTable, ChangeStream, RealLiveStreamActor
| Modifier and Type | Method and Description |
|---|---|
org.nustaq.kontraktor.IPromise |
atomic(String key,
RLFunction<Record,Object> action)
apply the function to the record with given key and return the result inside a promise
changes to the record inside the function are applied to the real record and a change message
is generated.
|
void |
atomicUpdate(RLPredicate<Record> filter,
RLFunction<Record,Boolean> action)
mass update.
|
add, add, addRecord, addRecord, get, getDescription, getStats, merge, merge, mergeRecord, mergeRecord, ping, put, put, remove, remove, resizeIfLoadFactorLarger, setRecord, setRecord, size, stop, take, update, updatereceivelisten, observe, subscribe, subscribeOn, subscribeOn, unsubscribeforEach, forEach, forEachWithSpore, map, queryorg.nustaq.kontraktor.IPromise atomic(String key, RLFunction<Record,Object> action)
key - action - void atomicUpdate(RLPredicate<Record> filter, RLFunction<Record,Boolean> action)
filter - - selects recordsaction - - function, the function might modify the record using putField. If false is returned, the record is deletedCopyright © 2019. All rights reserved.