Package org.languagetool.rules
Class GRPCRule.Connection
java.lang.Object
org.languagetool.rules.GRPCRule.Connection
- Enclosing class:
GRPCRule
-
Field Summary
FieldsModifier and TypeFieldDescription(package private) final io.grpc.ManagedChannel(package private) final MLServerGrpc.MLServerFutureStub -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
channel
final io.grpc.ManagedChannel channel -
stub
-
-
Constructor Details
-
Connection
Connection(RemoteRuleConfig serviceConfiguration) throws SSLException - Throws:
SSLException
-
-
Method Details
-
getManagedChannel
public static io.grpc.ManagedChannel getManagedChannel(String host, int port, boolean useSSL, @Nullable String clientPrivateKey, @Nullable String clientCertificate, @Nullable String rootCertificate) throws SSLException - Throws:
SSLException
-
shutdown
private void shutdown()
-