K
- the type of keysV
- the type of valuespublic class CacheWriterClient<K,V> extends CacheClient implements 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(Cache.Entry<? extends K,? extends V> entry) |
void |
writeAll(Collection<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 write(Cache.Entry<? extends K,? extends V> entry)
write
in interface CacheWriter<K,V>
public void writeAll(Collection<Cache.Entry<? extends K,? extends V>> entries)
writeAll
in interface CacheWriter<K,V>
public void delete(Object key)
delete
in interface CacheWriter<K,V>
public void deleteAll(Collection<?> keys)
deleteAll
in interface CacheWriter<K,V>
Copyright © 2014. All Rights Reserved.