Skip to content

Commit

Permalink
#IGNITE-53: wip
Browse files Browse the repository at this point in the history
  • Loading branch information
ivasilinets committed Jan 20, 2015
1 parent add3600 commit c500eda
Showing 1 changed file with 24 additions and 6 deletions.
Expand Up @@ -946,15 +946,33 @@ public void removeAll(Collection<? extends K> keys) {
} }


/** {@inheritDoc} */ /** {@inheritDoc} */
@Override public void registerCacheEntryListener(CacheEntryListenerConfiguration cacheEntryLsnrConfiguration) { @Override public void registerCacheEntryListener(CacheEntryListenerConfiguration<K, V> lsnrCfg) {
// TODO IGNITE-1. GridCacheProjectionImpl<K, V> prev = gate.enter(prj);
throw new UnsupportedOperationException();
try {
ctx.continuousQueries().registerCacheEntryListener(lsnrCfg, true);
}
catch (IgniteCheckedException e) {
throw cacheException(e);
}
finally {
gate.leave(prev);
}
} }


/** {@inheritDoc} */ /** {@inheritDoc} */
@Override public void deregisterCacheEntryListener(CacheEntryListenerConfiguration cacheEntryLsnrConfiguration) { @Override public void deregisterCacheEntryListener(CacheEntryListenerConfiguration lsnrCfg) {
// TODO IGNITE-1. GridCacheProjectionImpl<K, V> prev = gate.enter(prj);
throw new UnsupportedOperationException();
try {
ctx.continuousQueries().deregisterCacheEntryListener(lsnrCfg);
}
catch (IgniteCheckedException e) {
throw cacheException(e);
}
finally {
gate.leave(prev);
}
} }


/** {@inheritDoc} */ /** {@inheritDoc} */
Expand Down

0 comments on commit c500eda

Please sign in to comment.