Class GrpcCallOptions

java.lang.Object
com.influxdb.v3.client.internal.GrpcCallOptions

public final class GrpcCallOptions extends Object
The collection of runtime options for a new RPC call.
  • Method Details

    • getDefaultOptions

      @Nonnull public static GrpcCallOptions getDefaultOptions()
      Creates a default instance of GrpcCallOptions with predefined settings.

      The default configuration includes:

      Other options can be customized using the GrpcCallOptions.Builder.
      Returns:
      the default configuration of GrpcCallOptions.
    • mergeCallOptions

      public static org.apache.arrow.flight.CallOption[] mergeCallOptions(@Nullable org.apache.arrow.flight.CallOption[] baseCallOptions, org.apache.arrow.flight.CallOption... callOptions)
      Merges two arrays of CallOption into a single array. The method combines the elements from the baseCallOptions array and the additional callOptions array. If either of the input arrays is null, it will be treated as an empty array.
      Parameters:
      baseCallOptions - the base array of CallOption instances, may be null
      callOptions - additional CallOption instances to be added, may also be null
      Returns:
      a combined array containing all CallOption instances from both input arrays
    • getDeadline

      @Nullable public io.grpc.Deadline getDeadline()
      Returns the absolute deadline for a call.
      Returns:
      the Deadline object
    • getExecutor

      @Nullable public Executor getExecutor()
      Returns the Executor to be used instead of default.
      Returns:
      the Executor
    • getCompressorName

      @Nullable public String getCompressorName()
      Returns the compressor's name.
      Returns:
      the compressor's name
    • getWaitForReady

      @Nullable public Boolean getWaitForReady()
      Returns the wait for ready flag.
      Returns:
      the wait for ready flag
    • getMaxInboundMessageSize

      @Nullable public Integer getMaxInboundMessageSize()
      Returns the maximum allowed message size acceptable from the remote peer.
      Returns:
      the maximum message size receive allowed
    • getMaxOutboundMessageSize

      @Nullable public Integer getMaxOutboundMessageSize()
      Returns the maximum allowed message size acceptable to send the remote peer.
      Returns:
      the maximum message size send allowed
    • getCallOptions

      @Nonnull public org.apache.arrow.flight.CallOption[] getCallOptions()
      Get the CallOption callback list which is use when setting the grpc CallOption.
      Returns:
      the CallOption list
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object