All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.aliyun.openservices.shade.io.opentelemetry.api.baggage.ImmutableEntry Maven / Gradle / Ivy

There is a newer version: 1.9.4.Final
Show newest version
/*
 * Copyright The OpenTelemetry Authors
 * SPDX-License-Identifier: Apache-2.0
 */

package com.aliyun.openservices.shade.com.aliyun.openservices.shade.io.opentelemetry.api.baggage;

import com.aliyun.openservices.shade.com.aliyun.openservices.shade.com.google.auto.value.AutoValue;
import javax.annotation.concurrent.Immutable;

/** String-String key-value pair, along with {@link ImmutableEntryMetadata}. */
@Immutable
@AutoValue
abstract class ImmutableEntry implements BaggageEntry {

  ImmutableEntry() {}

  /**
   * Creates an {@code Entry} from the given key, value and metadata.
   *
   * @param value the entry value.
   * @param entryMetadata the entry metadata.
   * @return a {@code Entry}.
   */
  static ImmutableEntry create(String value, BaggageEntryMetadata entryMetadata) {
    return new AutoValue_ImmutableEntry(value, entryMetadata);
  }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy