K
- the type of keysV
- the type of valuespublic class CacheWriterServer<K,V> extends Server
Server
that handles CacheWriter
requests from a
CacheWriterClient
and delegates them to an underlying CacheWriter
.Modifier and Type | Class and Description |
---|---|
class |
CacheWriterServer.DeleteAllOperationHandler
The
OperationHandler for a CacheWriter.deleteAll(java.util.Collection) } operation. |
class |
CacheWriterServer.DeleteOperationHandler
The
OperationHandler for a CacheWriter.delete(Object) operation. |
class |
CacheWriterServer.WriteAllOperationHandler
The
OperationHandler for a CacheWriter.writeAll(java.util.Collection) } operation. |
class |
CacheWriterServer.WriteOperationHandler
The
OperationHandler for a CacheWriter.write(javax.cache.Cache.Entry) operation. |
Constructor and Description |
---|
CacheWriterServer(int port,
javax.cache.integration.CacheWriter<K,V> cacheWriter)
Constructs an CacheWriterServer.
|
Modifier and Type | Method and Description |
---|---|
void |
setCacheWriter(javax.cache.integration.CacheWriter<K,V> cacheWriter)
Set the
CacheWriter the CacheWriterServer should use
from now on. |
addOperationHandler, close, getInetAddress, getPort, open
public CacheWriterServer(int port, javax.cache.integration.CacheWriter<K,V> cacheWriter)
port
- the port on which to accept CacheWriterClient
requestscacheWriter
- (optional) the CacheWriter
that will be used to handle
client requestspublic void setCacheWriter(javax.cache.integration.CacheWriter<K,V> cacheWriter)
CacheWriter
the CacheWriterServer
should use
from now on.cacheWriter
- the CacheWriter
Copyright © 2014. All Rights Reserved.