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 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 a ClientConfig record class.
      Parameters:
      serviceAddress - the value for the serviceAddress record component
      requestTimeout - the value for the requestTimeout record component
      batchLinger - the value for the batchLinger record component
      maxRequestsPerBatch - the value for the maxRequestsPerBatch record component
      maxBatchSize - the value for the maxBatchSize record component
      sessionTimeout - the value for the sessionTimeout record component
      clientIdentifier - the value for the clientIdentifier record component
      openTelemetry - the value for the openTelemetry record component
      namespace - the value for the namespace record component
      authentication - the value for the authentication record component
      enableTls - the value for the enableTls record component
      connectionBackoffMinDelay - the value for the connectionBackoffMinDelay record component
      connectionBackoffMaxDelay - the value for the connectionBackoffMaxDelay record component
      connectionKeepAliveTime - the value for the connectionKeepAliveTime record component
      connectionKeepAliveTimeout - the value for the connectionKeepAliveTimeout record component
      maxConnectionPerNode - the value for the maxConnectionPerNode record component
  • Method Details

    • toString

      public final String 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.
      Specified by:
      toString in class Record
      Returns:
      a string representation of this object
    • 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.
      Specified by:
      hashCode in class Record
      Returns:
      a hash code value for this object
    • equals

      public final boolean equals(Object o)
      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 with Objects::equals(Object,Object); primitive components are compared with '=='.
      Specified by:
      equals in class Record
      Parameters:
      o - the object with which to compare
      Returns:
      true if this object is the same as the o argument; false otherwise.
    • serviceAddress

      @NonNull public @NonNull String serviceAddress()
      Returns the value of the serviceAddress record component.
      Returns:
      the value of the serviceAddress record component
    • requestTimeout

      @NonNull public @NonNull Duration requestTimeout()
      Returns the value of the requestTimeout record component.
      Returns:
      the value of the requestTimeout record component
    • batchLinger

      @NonNull public @NonNull Duration batchLinger()
      Returns the value of the batchLinger record component.
      Returns:
      the value of the batchLinger record component
    • maxRequestsPerBatch

      public int maxRequestsPerBatch()
      Returns the value of the maxRequestsPerBatch record component.
      Returns:
      the value of the maxRequestsPerBatch record component
    • maxBatchSize

      public int maxBatchSize()
      Returns the value of the maxBatchSize record component.
      Returns:
      the value of the maxBatchSize record component
    • sessionTimeout

      @NonNull public @NonNull Duration sessionTimeout()
      Returns the value of the sessionTimeout record component.
      Returns:
      the value of the sessionTimeout record component
    • clientIdentifier

      @NonNull public @NonNull String clientIdentifier()
      Returns the value of the clientIdentifier record component.
      Returns:
      the value of the clientIdentifier record component
    • openTelemetry

      public io.opentelemetry.api.OpenTelemetry openTelemetry()
      Returns the value of the openTelemetry record component.
      Returns:
      the value of the openTelemetry record component
    • namespace

      @NonNull public @NonNull String namespace()
      Returns the value of the namespace record component.
      Returns:
      the value of the namespace record component
    • authentication

      @Nullable public Authentication authentication()
      Returns the value of the authentication record component.
      Returns:
      the value of the authentication record component
    • enableTls

      public boolean enableTls()
      Returns the value of the enableTls record component.
      Returns:
      the value of the enableTls record component
    • connectionBackoffMinDelay

      @NonNull public @NonNull Duration connectionBackoffMinDelay()
      Returns the value of the connectionBackoffMinDelay record component.
      Returns:
      the value of the connectionBackoffMinDelay record component
    • connectionBackoffMaxDelay

      @NonNull public @NonNull Duration connectionBackoffMaxDelay()
      Returns the value of the connectionBackoffMaxDelay record component.
      Returns:
      the value of the connectionBackoffMaxDelay record component
    • connectionKeepAliveTime

      public Duration connectionKeepAliveTime()
      Returns the value of the connectionKeepAliveTime record component.
      Returns:
      the value of the connectionKeepAliveTime record component
    • connectionKeepAliveTimeout

      public Duration connectionKeepAliveTimeout()
      Returns the value of the connectionKeepAliveTimeout record component.
      Returns:
      the value of the connectionKeepAliveTimeout record component
    • maxConnectionPerNode

      public int maxConnectionPerNode()
      Returns the value of the maxConnectionPerNode record component.
      Returns:
      the value of the maxConnectionPerNode record component