Skip to content

Commit

Permalink
Add convenient gRPC Config constructors
Browse files Browse the repository at this point in the history
  • Loading branch information
antas-marcin committed Jul 24, 2024
1 parent ae8207e commit e2e6d8b
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/main/java/io/weaviate/client/Config.java
Original file line number Diff line number Diff line change
Expand Up @@ -35,10 +35,18 @@ public Config(String scheme, String host) {
this(scheme, host, null, DEFAULT_TIMEOUT_SECONDS, DEFAULT_TIMEOUT_SECONDS, DEFAULT_TIMEOUT_SECONDS);
}

public Config(String scheme, String host, boolean gRPCSecured, String gRPCHost) {
this(scheme, host, null, DEFAULT_TIMEOUT_SECONDS, gRPCSecured, gRPCHost);
}

public Config(String scheme, String host, Map<String, String> headers) {
this(scheme, host, headers, DEFAULT_TIMEOUT_SECONDS, DEFAULT_TIMEOUT_SECONDS, DEFAULT_TIMEOUT_SECONDS);
}

public Config(String scheme, String host, boolean gRPCSecured, String gRPCHost, Map<String, String> headers) {
this(scheme, host, headers, DEFAULT_TIMEOUT_SECONDS, gRPCSecured, gRPCHost);
}

public Config(String scheme, String host, Map<String, String> headers, int connectionTimeout, int connectionRequestTimeout, int socketTimeout) {
this.scheme = scheme;
this.host = host;
Expand Down

0 comments on commit e2e6d8b

Please sign in to comment.