Package io.streamnative.oxia.client
Record Class ClientConfig
java.lang.Object
java.lang.Record
io.streamnative.oxia.client.ClientConfig
public record ClientConfig(@NonNull String serviceAddress, @NonNull Duration requestTimeout, @NonNull Duration batchLinger, int maxRequestsPerBatch, int maxBatchSize, @NonNull Duration sessionTimeout, @NonNull String clientIdentifier, io.opentelemetry.api.OpenTelemetry openTelemetry, @NonNull String namespace, @Nullable Authentication authentication, boolean enableTls, @NonNull Duration connectionBackoffMinDelay, @NonNull Duration connectionBackoffMaxDelay, Duration connectionKeepAliveTime, Duration connectionKeepAliveTimeout, int maxConnectionPerNode)
extends Record
-
Constructor Summary
ConstructorsConstructorDescriptionClientConfig(@NonNull String serviceAddress, @NonNull Duration requestTimeout, @NonNull Duration batchLinger, int maxRequestsPerBatch, int maxBatchSize, @NonNull Duration sessionTimeout, @NonNull String clientIdentifier, io.opentelemetry.api.OpenTelemetry openTelemetry, @NonNull String namespace, Authentication authentication, boolean enableTls, @NonNull Duration connectionBackoffMinDelay, @NonNull Duration connectionBackoffMaxDelay, Duration connectionKeepAliveTime, Duration connectionKeepAliveTimeout, int maxConnectionPerNode) Creates an instance of aClientConfigrecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theauthenticationrecord component.@NonNull DurationReturns the value of thebatchLingerrecord component.@NonNull StringReturns the value of theclientIdentifierrecord component.@NonNull DurationReturns the value of theconnectionBackoffMaxDelayrecord component.@NonNull DurationReturns the value of theconnectionBackoffMinDelayrecord component.Returns the value of theconnectionKeepAliveTimerecord component.Returns the value of theconnectionKeepAliveTimeoutrecord component.booleanReturns the value of theenableTlsrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.intReturns the value of themaxBatchSizerecord component.intReturns the value of themaxConnectionPerNoderecord component.intReturns the value of themaxRequestsPerBatchrecord component.@NonNull StringReturns the value of thenamespacerecord component.io.opentelemetry.api.OpenTelemetryReturns the value of theopenTelemetryrecord component.@NonNull DurationReturns the value of therequestTimeoutrecord component.@NonNull StringReturns the value of theserviceAddressrecord component.@NonNull DurationReturns the value of thesessionTimeoutrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
ClientConfig
public ClientConfig(@NonNull @NonNull String serviceAddress, @NonNull @NonNull Duration requestTimeout, @NonNull @NonNull Duration batchLinger, int maxRequestsPerBatch, int maxBatchSize, @NonNull @NonNull Duration sessionTimeout, @NonNull @NonNull String clientIdentifier, io.opentelemetry.api.OpenTelemetry openTelemetry, @NonNull @NonNull String namespace, @Nullable Authentication authentication, boolean enableTls, @NonNull @NonNull Duration connectionBackoffMinDelay, @NonNull @NonNull Duration connectionBackoffMaxDelay, Duration connectionKeepAliveTime, Duration connectionKeepAliveTimeout, int maxConnectionPerNode) Creates an instance of aClientConfigrecord class.- Parameters:
serviceAddress- the value for theserviceAddressrecord componentrequestTimeout- the value for therequestTimeoutrecord componentbatchLinger- the value for thebatchLingerrecord componentmaxRequestsPerBatch- the value for themaxRequestsPerBatchrecord componentmaxBatchSize- the value for themaxBatchSizerecord componentsessionTimeout- the value for thesessionTimeoutrecord componentclientIdentifier- the value for theclientIdentifierrecord componentopenTelemetry- the value for theopenTelemetryrecord componentnamespace- the value for thenamespacerecord componentauthentication- the value for theauthenticationrecord componentenableTls- the value for theenableTlsrecord componentconnectionBackoffMinDelay- the value for theconnectionBackoffMinDelayrecord componentconnectionBackoffMaxDelay- the value for theconnectionBackoffMaxDelayrecord componentconnectionKeepAliveTime- the value for theconnectionKeepAliveTimerecord componentconnectionKeepAliveTimeout- the value for theconnectionKeepAliveTimeoutrecord componentmaxConnectionPerNode- the value for themaxConnectionPerNoderecord component
-
-
Method Details
-
toString
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. -
hashCode
public final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with '=='. -
serviceAddress
Returns the value of theserviceAddressrecord component.- Returns:
- the value of the
serviceAddressrecord component
-
requestTimeout
Returns the value of therequestTimeoutrecord component.- Returns:
- the value of the
requestTimeoutrecord component
-
batchLinger
Returns the value of thebatchLingerrecord component.- Returns:
- the value of the
batchLingerrecord component
-
maxRequestsPerBatch
public int maxRequestsPerBatch()Returns the value of themaxRequestsPerBatchrecord component.- Returns:
- the value of the
maxRequestsPerBatchrecord component
-
maxBatchSize
public int maxBatchSize()Returns the value of themaxBatchSizerecord component.- Returns:
- the value of the
maxBatchSizerecord component
-
sessionTimeout
Returns the value of thesessionTimeoutrecord component.- Returns:
- the value of the
sessionTimeoutrecord component
-
clientIdentifier
Returns the value of theclientIdentifierrecord component.- Returns:
- the value of the
clientIdentifierrecord component
-
openTelemetry
public io.opentelemetry.api.OpenTelemetry openTelemetry()Returns the value of theopenTelemetryrecord component.- Returns:
- the value of the
openTelemetryrecord component
-
namespace
Returns the value of thenamespacerecord component.- Returns:
- the value of the
namespacerecord component
-
authentication
Returns the value of theauthenticationrecord component.- Returns:
- the value of the
authenticationrecord component
-
enableTls
public boolean enableTls()Returns the value of theenableTlsrecord component.- Returns:
- the value of the
enableTlsrecord component
-
connectionBackoffMinDelay
Returns the value of theconnectionBackoffMinDelayrecord component.- Returns:
- the value of the
connectionBackoffMinDelayrecord component
-
connectionBackoffMaxDelay
Returns the value of theconnectionBackoffMaxDelayrecord component.- Returns:
- the value of the
connectionBackoffMaxDelayrecord component
-
connectionKeepAliveTime
Returns the value of theconnectionKeepAliveTimerecord component.- Returns:
- the value of the
connectionKeepAliveTimerecord component
-
connectionKeepAliveTimeout
Returns the value of theconnectionKeepAliveTimeoutrecord component.- Returns:
- the value of the
connectionKeepAliveTimeoutrecord component
-
maxConnectionPerNode
public int maxConnectionPerNode()Returns the value of themaxConnectionPerNoderecord component.- Returns:
- the value of the
maxConnectionPerNoderecord component
-