public class ChannelFactory extends Object implements AutoCloseable
Constructor and Description |
---|
ChannelFactory(int maxFrameSize,
int keepaliveTime,
int keepaliveTimeout,
int idleTimeout) |
ChannelFactory(int maxFrameSize,
int keepaliveTime,
int keepaliveTimeout,
int idleTimeout,
String trustCertCollectionFilePath,
String keyCertChainFilePath,
String keyFilePath) |
ChannelFactory(int maxFrameSize,
int keepaliveTime,
int keepaliveTimeout,
int idleTimeout,
String jksKeyPath,
String jksKeyPassword,
String jkstrustPath,
String jksTrustPassword) |
Modifier and Type | Method and Description |
---|---|
void |
close() |
org.tikv.shade.io.grpc.ManagedChannel |
getChannel(String addressStr,
org.tikv.common.HostMapping hostMapping) |
public ChannelFactory(int maxFrameSize, int keepaliveTime, int keepaliveTimeout, int idleTimeout)
public ChannelFactory(int maxFrameSize, int keepaliveTime, int keepaliveTimeout, int idleTimeout, String trustCertCollectionFilePath, String keyCertChainFilePath, String keyFilePath)
public org.tikv.shade.io.grpc.ManagedChannel getChannel(String addressStr, org.tikv.common.HostMapping hostMapping)
public void close()
close
in interface AutoCloseable
Copyright © 2024 The Apache Software Foundation. All rights reserved.