K
- the type of keysV
- the type of valuespublic class CacheWriterClient<K,V> extends CacheClient implements javax.cache.integration.CacheWriter<K,V>
CacheWriter
that delegates requests to a CacheWriterServer
.address, client, port
Constructor and Description |
---|
CacheWriterClient(InetAddress address,
int port)
Constructs a
CacheWriterClient . |
Modifier and Type | Method and Description |
---|---|
void |
delete(Object key) |
void |
deleteAll(Collection<?> keys) |
void |
write(javax.cache.Cache.Entry<? extends K,? extends V> entry) |
void |
writeAll(Collection<javax.cache.Cache.Entry<? extends K,? extends V>> entries) |
close, getClient
public CacheWriterClient(InetAddress address, int port)
CacheWriterClient
.address
- the InetAddress
on which to connect to the CacheWriterServer
port
- the port to which to connect to the CacheWriterServer
public void writeAll(Collection<javax.cache.Cache.Entry<? extends K,? extends V>> entries)
public void delete(Object key)
public void deleteAll(Collection<?> keys)
Copyright © 2014. All Rights Reserved.