public class NettyDistributedSetCacheClient extends DistributedCacheClient
DistributedCacheClient using the netty library to provide the remote
communication services.| Constructor and Description |
|---|
NettyDistributedSetCacheClient(String hostname,
int port,
int timeoutMillis,
SSLContextService sslContextService,
VersionNegotiatorFactory factory)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
addIfAbsent(byte[] value)
Adds the specified value to the cache.
|
void |
close()
Perform a clean shutdown of the cache client.
|
boolean |
contains(byte[] value)
Check for the existence of the specified value in the cache.
|
boolean |
remove(byte[] value)
Removes the given value from the cache, if it is present.
|
closeChannelPool, invokepublic NettyDistributedSetCacheClient(String hostname, int port, int timeoutMillis, SSLContextService sslContextService, VersionNegotiatorFactory factory)
hostname - the network name / IP address of the server running the distributed cache serviceport - the port on which the distributed cache service is runningtimeoutMillis - the network timeout associated with requests to the servicesslContextService - the SSL context (if any) associated with requests to the service; if not specified,
communications will not be encryptedfactory - creator of object used to broker the version of the distributed cache protocol with the servicepublic boolean addIfAbsent(byte[] value)
throws IOException
value - the value to be addedIOException - if unable to communicate with the remote instancepublic boolean contains(byte[] value)
throws IOException
value - the value to be checkedIOException - if unable to communicate with the remote instancepublic boolean remove(byte[] value)
throws IOException
value - the value to be removedIOException - if unable to communicate with the remote instancepublic void close()
throws IOException
IOException - if unable to communicate with the remote instanceCopyright © 2022 Apache NiFi Project. All rights reserved.