public class CacheClientChannelPoolFactory extends Object
ChannelPool, used by distributed cache clients to invoke service
methods. Cache clients include the NiFi services DistributedSetCacheClientService
and DistributedMapCacheClientService.| Modifier and Type | Field and Description |
|---|---|
private static int |
MAX_PENDING_ACQUIRES |
private int |
maxConnections |
| Constructor and Description |
|---|
CacheClientChannelPoolFactory() |
| Modifier and Type | Method and Description |
|---|---|
io.netty.channel.pool.ChannelPool |
createChannelPool(String hostname,
int port,
int timeoutMillis,
SSLContextService sslContextService,
VersionNegotiatorFactory factory)
Instantiate a new netty pool of channels to be used for distributed cache communications
|
void |
setMaxConnections(int maxConnections)
Set Maximum Connections for Channel Pool
|
private static final int MAX_PENDING_ACQUIRES
private int maxConnections
public void setMaxConnections(int maxConnections)
maxConnections - Maximum Number of connections defaults to available processors multiplied by 2public io.netty.channel.pool.ChannelPool createChannelPool(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 serviceChannel objects may be obtainedCopyright © 2022 Apache NiFi Project. All rights reserved.