Package org.nustaq.reallive.api
Interface RealLiveTable
- All Superinterfaces:
ChangeReceiver,ChangeStream,RealLiveStreamActor,SafeChangeStream,SafeRealLiveStreamActor,SafeRealLiveTable,java.io.Serializable
- All Known Implementing Classes:
DynShardedTable,RealLiveTableActor,ShardedTable
public interface RealLiveTable extends SafeRealLiveTable, ChangeStream, RealLiveStreamActor
Created by ruedi on 06/08/15.
-
Method Summary
Modifier and Type Method Description org.nustaq.kontraktor.IPromiseatomic(int senderId, java.lang.String key, RLFunction<Record,java.lang.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.default org.nustaq.kontraktor.IPromiseatomic(java.lang.String key, RLFunction<Record,java.lang.Object> action)voidatomicUpdate(RLPredicate<Record> filter, RLFunction<Record,java.lang.Boolean> action)mass update.default org.nustaq.kontraktor.IPromise<Record>find(RLPredicate<Record> condition)default org.nustaq.kontraktor.IPromise<java.util.List<Record>>queryList(RLPredicate<Record> condition)voidunsubscribeById(int subsId)Methods inherited from interface org.nustaq.reallive.api.ChangeStream
listen, observe, subscribe, subscribeOn, subscribeOn, unsubscribeMethods inherited from interface org.nustaq.reallive.api.RealLiveStreamActor
forEach, forEach, forEachWithSpore, map, queryMethods inherited from interface org.nustaq.reallive.api.SafeRealLiveTable
add, add, addRecord, addRecord, get, getDescription, getStats, merge, merge, mergeRecord, mergeRecord, ping, put, put, remove, remove, resizeIfLoadFactorLarger, setRecord, setRecord, size, stop, take, update, update
-
Method Details
-
atomic
org.nustaq.kontraktor.IPromise atomic(int senderId, java.lang.String key, RLFunction<Record,java.lang.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. In case the function returns a changemessage (add,putRecord,remove ..), the change message is applied to the original record and broadcasted. Else the result of the action function is passed to the remote callee- Parameters:
key-action-- Returns:
- the result of function.
-
atomic
default org.nustaq.kontraktor.IPromise atomic(java.lang.String key, RLFunction<Record,java.lang.Object> action) -
atomicUpdate
mass update.- Parameters:
filter- - selects recordsaction- - function, the function might modify the record using putField. If false is returned, the record is deleted
-
unsubscribeById
void unsubscribeById(int subsId) -
queryList
default org.nustaq.kontraktor.IPromise<java.util.List<Record>> queryList(RLPredicate<Record> condition) -
find
-