public class ChannelFactory extends Object implements AutoCloseable
Modifier and Type | Class and Description |
---|---|
static class |
ChannelFactory.CertContext |
static class |
ChannelFactory.CertWatcher |
static class |
ChannelFactory.JksContext |
static class |
ChannelFactory.OpenSslContext |
Modifier and Type | Field and Description |
---|---|
ConcurrentHashMap<String,io.grpc.ManagedChannel> |
connPool |
Constructor and Description |
---|
ChannelFactory(int maxFrameSize,
int keepaliveTime,
int keepaliveTimeout,
int idleTimeout) |
ChannelFactory(int maxFrameSize,
int keepaliveTime,
int keepaliveTimeout,
int idleTimeout,
long connRecycleTime,
long certReloadInterval,
String trustCertCollectionFilePath,
String keyCertChainFilePath,
String keyFilePath) |
ChannelFactory(int maxFrameSize,
int keepaliveTime,
int keepaliveTimeout,
int idleTimeout,
long connRecycleTime,
long certReloadInterval,
String jksKeyPath,
String jksKeyPassword,
String jksTrustPath,
String jksTrustPassword) |
Modifier and Type | Method and Description |
---|---|
void |
close() |
io.grpc.ManagedChannel |
getChannel(String address,
HostMapping mapping) |
public final ConcurrentHashMap<String,io.grpc.ManagedChannel> connPool
public ChannelFactory(int maxFrameSize, int keepaliveTime, int keepaliveTimeout, int idleTimeout)
public ChannelFactory(int maxFrameSize, int keepaliveTime, int keepaliveTimeout, int idleTimeout, long connRecycleTime, long certReloadInterval, String trustCertCollectionFilePath, String keyCertChainFilePath, String keyFilePath)
public io.grpc.ManagedChannel getChannel(String address, HostMapping mapping)
public void close()
close
in interface AutoCloseable
Copyright © 2024 PingCAP. All rights reserved.