public class MapCacheServer extends AbstractCacheServer
| Modifier and Type | Field and Description |
|---|---|
private MapCache |
cache |
stopped| Constructor and Description |
|---|
MapCacheServer(String identifier,
SSLContext sslContext,
int port,
int maxSize,
EvictionPolicy evictionPolicy,
File persistencePath) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
finalize() |
protected boolean |
listen(InputStream in,
OutputStream out,
int version)
Listens for incoming data and communicates with remote peer
|
private byte[] |
readValue(DataInputStream dis) |
void |
stop() |
getPort, start, toStringprivate final MapCache cache
public MapCacheServer(String identifier, SSLContext sslContext, int port, int maxSize, EvictionPolicy evictionPolicy, File persistencePath) throws IOException
IOExceptionprotected boolean listen(InputStream in, OutputStream out, int version) throws IOException
AbstractCacheServerlisten in class AbstractCacheServerin - inout - outversion - versiontrue if communications should continue, false otherwiseIOException - expublic void stop()
throws IOException
stop in interface CacheServerstop in class AbstractCacheServerIOExceptionprotected void finalize()
throws Throwable
private byte[] readValue(DataInputStream dis) throws IOException
IOExceptionCopyright © 2015 Apache NiFi Project. All rights reserved.