Class ClientCacheQueryContinuousHandle
- java.lang.Object
-
- org.apache.ignite.internal.processors.platform.client.cache.ClientCacheQueryContinuousHandle
-
- All Implemented Interfaces:
EventListener,javax.cache.event.CacheEntryListener<Object,Object>,javax.cache.event.CacheEntryUpdatedListener<Object,Object>,ClientCloseableResource
public class ClientCacheQueryContinuousHandle extends Object implements javax.cache.event.CacheEntryUpdatedListener<Object,Object>, ClientCloseableResource
Continuous query handle. NOTE: Do not mark withIgniteAsyncCallback- it disables batching and sends events one by one.
-
-
Constructor Summary
Constructors Constructor Description ClientCacheQueryContinuousHandle(ClientConnectionContext ctx)Ctor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclose()Closes the resource.voidonUpdated(Iterable<javax.cache.event.CacheEntryEvent<?,?>> iterable)voidsetCursor(QueryCursor<?> cur)Sets the cursor.voidstartNotifications(long id)Sets the cursor id.
-
-
-
Constructor Detail
-
ClientCacheQueryContinuousHandle
public ClientCacheQueryContinuousHandle(ClientConnectionContext ctx)
Ctor.- Parameters:
ctx- Context.
-
-
Method Detail
-
onUpdated
public void onUpdated(Iterable<javax.cache.event.CacheEntryEvent<?,?>> iterable) throws javax.cache.event.CacheEntryListenerException
-
setCursor
public void setCursor(QueryCursor<?> cur)
Sets the cursor.- Parameters:
cur- Cursor.
-
startNotifications
public void startNotifications(long id)
Sets the cursor id.- Parameters:
id- Cursor id.
-
close
public void close()
Closes the resource.- Specified by:
closein interfaceClientCloseableResource
-
-