public class DistributedCacheClient extends Object
DistributedSetCacheClientService or a
DistributedMapCacheClientService.| Modifier and Type | Field and Description |
|---|---|
private io.netty.channel.pool.ChannelPool |
channelPool
The pool of network connections used to service client requests.
|
| Modifier | Constructor and Description |
|---|---|
protected |
DistributedCacheClient(String hostname,
int port,
int timeoutMillis,
SSLContextService sslContextService,
VersionNegotiatorFactory factory)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
protected void |
closeChannelPool()
Shutdown
ChannelPool cleanly. |
protected void |
invoke(OutboundAdapter outboundAdapter,
InboundAdapter inboundAdapter)
Call a service method.
|
private final io.netty.channel.pool.ChannelPool channelPool
protected DistributedCacheClient(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 serviceprotected void invoke(OutboundAdapter outboundAdapter, InboundAdapter inboundAdapter) throws IOException
outboundAdapter - the object used to assemble the service request byte streaminboundAdapter - the object used to interpret the service response byte streamIOException - on serialization failure; on communication failureprotected void closeChannelPool()
ChannelPool cleanly.Copyright © 2022 Apache NiFi Project. All rights reserved.