/** <inheritDoc /> */ IContinuousQueryHandle ICache <TK, TV> .QueryContinuous(ContinuousQuery <TK, TV> qry) { return(_cache.QueryContinuous(qry)); }
/** <inheritDoc /> */ public IContinuousQueryHandle <ICacheEntry <TK, TV> > QueryContinuous(ContinuousQuery <TK, TV> qry, QueryBase initialQry) { return(_cache.QueryContinuous(qry, initialQry)); }
/// <summary> /// Check regular callback execution. /// </summary> /// <param name="loc"></param> protected void CheckCallback(bool loc) { int key1 = PrimaryKey(cache1); int key2 = PrimaryKey(cache2); ContinuousQuery <int, BinarizableEntry> qry = loc ? new ContinuousQuery <int, BinarizableEntry>(new Listener <BinarizableEntry>(), true) : new ContinuousQuery <int, BinarizableEntry>(new Listener <BinarizableEntry>()); using (cache1.QueryContinuous(qry)) { // Put from local node. cache1.GetAndPut(key1, Entry(key1)); CheckCallbackSingle(key1, null, Entry(key1), CacheEntryEventType.Created); cache1.GetAndPut(key1, Entry(key1 + 1)); CheckCallbackSingle(key1, Entry(key1), Entry(key1 + 1), CacheEntryEventType.Updated); cache1.Remove(key1); CheckCallbackSingle(key1, Entry(key1 + 1), Entry(key1 + 1), CacheEntryEventType.Removed); // Put from remote node. cache2.GetAndPut(key2, Entry(key2)); if (loc) { CheckNoCallback(100); } else { CheckCallbackSingle(key2, null, Entry(key2), CacheEntryEventType.Created); } cache1.GetAndPut(key2, Entry(key2 + 1)); if (loc) { CheckNoCallback(100); } else { CheckCallbackSingle(key2, Entry(key2), Entry(key2 + 1), CacheEntryEventType.Updated); } cache1.Remove(key2); if (loc) { CheckNoCallback(100); } else { CheckCallbackSingle(key2, Entry(key2 + 1), Entry(key2 + 1), CacheEntryEventType.Removed); } } cache1.Put(key1, Entry(key1)); CheckNoCallback(100); cache1.Put(key2, Entry(key2)); CheckNoCallback(100); }
public IContinuousQueryHandle <ICacheEntry <int, int> > QueryContinuous(ContinuousQuery <int, int> qry, QueryBase initialQry) { throw new NotImplementedException(); }
public IContinuousQueryHandle QueryContinuous(ContinuousQuery <int, int> qry) { throw new NotImplementedException(); }
/** <inheritdoc /> */ public IContinuousQueryHandle QueryContinuous(ContinuousQuery <TK, TV> qry) { IgniteArgumentCheck.NotNull(qry, "qry"); return(QueryContinuousImpl(qry, null)); }
/** <inheritDoc /> */ public IContinuousQueryHandle QueryContinuous(ContinuousQuery <TK, TV> qry) { return(_cache.QueryContinuous(qry)); }