6161 * <li><code>authenticator</code> - HTTP proxy authenticator</li>
6262 * <li><code>headers</code> - headers to be added to requests</li>
6363 * <li><code>sslRootsFilePath</code> - path to the stored certificates file in PEM format</li>
64- * <li><code>maxInboundMessageSize</code> - RPC maximum inbound message size that the client can receive</li>
6564 * </ul>
6665 * <p>
6766 * If you want to create a client with custom configuration, you can use following code:
@@ -103,7 +102,6 @@ public final class ClientConfig {
103102 private final Authenticator authenticator ;
104103 private final Map <String , String > headers ;
105104 private final String sslRootsFilePath ;
106- private final Integer maxInboundMessageSize ;
107105
108106 /**
109107 * Deprecated use {@link #proxyUrl}.
@@ -242,16 +240,6 @@ public String getProxyUrl() {
242240 return proxyUrl ;
243241 }
244242
245- /**
246- * Gets rpc max message size client can receive.
247- *
248- * @return the size in Integer, may be null
249- */
250- @ Nullable
251- public Integer getMaxInboundMessageSize () {
252- return maxInboundMessageSize ;
253- }
254-
255243 /**
256244 * Gets certificates file path.
257245 *
@@ -315,8 +303,7 @@ public boolean equals(final Object o) {
315303 && Objects .equals (proxyUrl , that .proxyUrl )
316304 && Objects .equals (authenticator , that .authenticator )
317305 && Objects .equals (headers , that .headers )
318- && Objects .equals (sslRootsFilePath , that .sslRootsFilePath )
319- && Objects .equals (maxInboundMessageSize , that .maxInboundMessageSize );
306+ && Objects .equals (sslRootsFilePath , that .sslRootsFilePath );
320307 }
321308
322309 @ Override
@@ -325,7 +312,7 @@ public int hashCode() {
325312 database , writePrecision , gzipThreshold ,
326313 timeout , allowHttpRedirects , disableServerCertificateValidation ,
327314 proxy , proxyUrl , authenticator , headers ,
328- defaultTags , sslRootsFilePath , maxInboundMessageSize );
315+ defaultTags , sslRootsFilePath );
329316 }
330317
331318 @ Override
@@ -345,7 +332,6 @@ public String toString() {
345332 .add ("headers=" + headers )
346333 .add ("defaultTags=" + defaultTags )
347334 .add ("sslRootsFilePath=" + sslRootsFilePath )
348- .add ("maxInboundMessageSize=" + maxInboundMessageSize )
349335 .toString ();
350336 }
351337
@@ -371,7 +357,6 @@ public static final class Builder {
371357 private Authenticator authenticator ;
372358 private Map <String , String > headers ;
373359 private String sslRootsFilePath ;
374- private Integer maxInboundMessageSize ;
375360
376361 /**
377362 * Sets the URL of the InfluxDB server.
@@ -604,19 +589,6 @@ public Builder sslRootsFilePath(@Nullable final String sslRootsFilePath) {
604589 return this ;
605590 }
606591
607- /**
608- * Set rpc max message size client can receive. Default is 'null'.
609- *
610- * @param maxInboundMessageSize The size in Integer
611- * @return this
612- */
613- @ Nonnull
614- public Builder maxInboundMessageSize (@ Nullable final Integer maxInboundMessageSize ) {
615-
616- this .maxInboundMessageSize = maxInboundMessageSize ;
617- return this ;
618- }
619-
620592 /**
621593 * Build an instance of {@code ClientConfig}.
622594 *
@@ -756,6 +728,5 @@ private ClientConfig(@Nonnull final Builder builder) {
756728 authenticator = builder .authenticator ;
757729 headers = builder .headers ;
758730 sslRootsFilePath = builder .sslRootsFilePath ;
759- maxInboundMessageSize = builder .maxInboundMessageSize ;
760731 }
761732}
0 commit comments