public class ClientCacheEntryListenerHandler<K,V> extends Object implements AutoCloseable
ContinuousQuery listeners and JCache cache entry listeners.| Modifier and Type | Method and Description |
|---|---|
void |
acceptNotification(ByteBuffer payload,
Exception err)
Accept notification.
|
org.apache.ignite.internal.client.thin.ClientChannel |
clientChannel()
Client channel.
|
void |
close() |
void |
onChannelClosed(Exception reason)
Handles connection loss.
|
void |
startListen(javax.cache.event.CacheEntryUpdatedListener<K,V> locLsnr,
ClientDisconnectListener disconnectLsnr,
javax.cache.configuration.Factory<? extends javax.cache.event.CacheEntryEventFilter<? super K,? super V>> rmtFilterFactory,
int pageSize,
long timeInterval,
boolean includeExpired)
Send request to the server and start
|
public void startListen(javax.cache.event.CacheEntryUpdatedListener<K,V> locLsnr, ClientDisconnectListener disconnectLsnr, javax.cache.configuration.Factory<? extends javax.cache.event.CacheEntryEventFilter<? super K,? super V>> rmtFilterFactory, int pageSize, long timeInterval, boolean includeExpired)
public void acceptNotification(ByteBuffer payload, Exception err)
payload - Notification payload or null if there is no payload.err - Error.public void onChannelClosed(Exception reason)
reason - Exception that caused the disconnect, can be null.public void close()
close in interface AutoCloseablepublic org.apache.ignite.internal.client.thin.ClientChannel clientChannel()
Follow @ApacheIgnite
Ignite Database and Caching Platform : ver. 2.11.0 Release Date : September 11 2021