Interface RealLiveTable

All Superinterfaces:
ChangeReceiver, ChangeStream, RealLiveStreamActor, SafeChangeStream, SafeRealLiveStreamActor, SafeRealLiveTable, Serializable
All Known Implementing Classes:
DynShardedTable, RealLiveTableActor, ShardedTable

public interface RealLiveTable extends SafeRealLiveTable, ChangeStream, RealLiveStreamActor
Created by ruedi on 06/08/15.
  • Method Details

    • atomic

      org.nustaq.kontraktor.IPromise atomic(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. 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(String key, RLFunction<Record,Object> action)
    • atomicUpdate

      void atomicUpdate(RLPredicate<Record> filter, RLFunction<Record,Boolean> action)
      mass update.
      Parameters:
      filter - - selects records
      action - - 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<List<Record>> queryList(RLPredicate<Record> condition)
    • find

      default org.nustaq.kontraktor.IPromise<Record> find(RLPredicate<Record> condition)
    • queryRemoveLog

      void queryRemoveLog(long start, long end, org.nustaq.kontraktor.Callback<RemoveLog.RemoveLogEntry> cb)
    • pruneRemoveLog

      void pruneRemoveLog(long maxAge)