Package com.influxdb.v3.client.internal
Class GrpcCallOptions
java.lang.Object
com.influxdb.v3.client.internal.GrpcCallOptions
The collection of runtime options for a new RPC call.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classBuilder for GrpcCallOption. -
Method Summary
Modifier and TypeMethodDescriptionbooleanorg.apache.arrow.flight.CallOption[]Get the CallOption callback list which is use when setting the grpc CallOption.Returns the compressor's name.io.grpc.DeadlineReturns the absolute deadline for a call.static GrpcCallOptionsCreates a default instance ofGrpcCallOptionswith predefined settings.Returns the Executor to be used instead of default.Returns the maximum allowed message size acceptable from the remote peer.Returns the maximum allowed message size acceptable to send the remote peer.Returns the wait for ready flag.inthashCode()static org.apache.arrow.flight.CallOption[]mergeCallOptions(org.apache.arrow.flight.CallOption[] baseCallOptions, org.apache.arrow.flight.CallOption... callOptions) Merges two arrays ofCallOptioninto a single array.toString()
-
Method Details
-
getDefaultOptions
Creates a default instance ofGrpcCallOptionswith predefined settings.The default configuration includes:
- Maximum inbound message size set to
Integer.MAX_VALUE.
GrpcCallOptions.Builder.- Returns:
- the default configuration of
GrpcCallOptions.
- Maximum inbound message size set to
-
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 ofCallOptioninto 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 ofCallOptioninstances, may be nullcallOptions- additionalCallOptioninstances to be added, may also be null- Returns:
- a combined array containing all
CallOptioninstances from both input arrays
-
getDeadline
@Nullable public io.grpc.Deadline getDeadline()Returns the absolute deadline for a call.- Returns:
- the Deadline object
-
getExecutor
Returns the Executor to be used instead of default.- Returns:
- the Executor
-
getCompressorName
Returns the compressor's name.- Returns:
- the compressor's name
-
getWaitForReady
Returns the wait for ready flag.- Returns:
- the wait for ready flag
-
getMaxInboundMessageSize
Returns the maximum allowed message size acceptable from the remote peer.- Returns:
- the maximum message size receive allowed
-
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
-
hashCode
public int hashCode() -
toString
-