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, directServer, port
Constructor and Description |
---|
CacheEntryListenerClient(InetAddress address,
int port)
Constructs a
CacheEntryListenerClient . |
Modifier and Type | Method and Description |
---|---|
protected void |
checkDirectCallsPossible() |
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, getClient, isDirectCallable
public CacheEntryListenerClient(InetAddress address, int port)
CacheEntryListenerClient
.address
- the InetAddress
on which to connect to the
CacheEntryListenerServer
port
- the port to which to connect to the CacheEntryListenerServer
protected void checkDirectCallsPossible()
checkDirectCallsPossible
in class CacheClient
public 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
cache2k API documentation. Copyright © 2000–2018 headissue GmbH, Munich.