K - the type of keysV - the type of valuespublic class CacheEntryListenerClient<K,V> extends CacheClient implements javax.cache.event.CacheEntryListener<K,V>, javax.cache.event.CacheEntryCreatedListener<K,V>, javax.cache.event.CacheEntryUpdatedListener<K,V>, javax.cache.event.CacheEntryRemovedListener<K,V>, javax.cache.event.CacheEntryExpiredListener<K,V>
CacheEntryListener that delegates requests to a
CacheEntryListenerServer. Added to support testing TCK in a distributed
environment.address, client, port| Constructor and Description |
|---|
CacheEntryListenerClient(InetAddress address,
int port)
Constructs a
CacheEntryListenerClient. |
| Modifier and Type | Method and Description |
|---|---|
void |
onCreated(Iterable<javax.cache.event.CacheEntryEvent<? extends K,? extends V>> cacheEntryEvents) |
void |
onExpired(Iterable<javax.cache.event.CacheEntryEvent<? extends K,? extends V>> cacheEntryEvents) |
void |
onRemoved(Iterable<javax.cache.event.CacheEntryEvent<? extends K,? extends V>> cacheEntryEvents) |
void |
onUpdated(Iterable<javax.cache.event.CacheEntryEvent<? extends K,? extends V>> cacheEntryEvents) |
close, getClientpublic CacheEntryListenerClient(InetAddress address, int port)
CacheEntryListenerClient.address - the InetAddress on which to connect to the
CacheEntryListenerServerport - the port to which to connect to the CacheEntryListenerServerpublic void onCreated(Iterable<javax.cache.event.CacheEntryEvent<? extends K,? extends V>> cacheEntryEvents) throws javax.cache.event.CacheEntryListenerException
public void onExpired(Iterable<javax.cache.event.CacheEntryEvent<? extends K,? extends V>> cacheEntryEvents) throws javax.cache.event.CacheEntryListenerException
public void onRemoved(Iterable<javax.cache.event.CacheEntryEvent<? extends K,? extends V>> cacheEntryEvents) throws javax.cache.event.CacheEntryListenerException
Copyright © 2019. All rights reserved.