Package org.nustaq.reallive.api
Interface RealLiveTable
- All Superinterfaces:
ChangeReceiver,ChangeStream,RealLiveStreamActor,SafeChangeStream,SafeRealLiveStreamActor,SafeRealLiveTable,Serializable
- All Known Implementing Classes:
DynShardedTable,RealLiveTableActor,ShardedTable
Created by ruedi on 06/08/15.
-
Method Summary
Modifier and TypeMethodDescriptionorg.nustaq.kontraktor.IPromiseatomic(int senderId, 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.default org.nustaq.kontraktor.IPromiseatomic(String key, RLFunction<Record, Object> action) voidatomicUpdate(RLPredicate<Record> filter, RLFunction<Record, Boolean> action) mass update.default org.nustaq.kontraktor.IPromise<Record>find(RLPredicate<Record> condition) voidpruneRemoveLog(long maxAge) queryList(RLPredicate<Record> condition) voidqueryRemoveLog(long start, long end, org.nustaq.kontraktor.Callback<RemoveLog.RemoveLogEntry> cb) voidunsubscribeById(int subsId) Methods inherited from interface org.nustaq.reallive.api.ChangeReceiver
receiveMethods 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, listByQuery, map, queryMethods inherited from interface org.nustaq.reallive.api.SafeRealLiveTable
_deepMerge, _join, add, add, addRecord, addRecord, deepMerge, deepMerge, get, getDescription, getStats, join, join, ping, put, put, remove, remove, resizeIfLoadFactorLarger, setRecord, setRecord, setRecordAsIs, size, stop, take, update, update, upsert, upsert, upsertRecord, upsertRecord
-
Method Details
-
atomic
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
-
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
-
find
-
queryRemoveLog
void queryRemoveLog(long start, long end, org.nustaq.kontraktor.Callback<RemoveLog.RemoveLogEntry> cb) -
pruneRemoveLog
void pruneRemoveLog(long maxAge)
-