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

org.apache.rocketmq.shaded.io.opentelemetry.api.baggage.ImmutableEntry Maven / Gradle / Ivy

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

package org.apache.rocketmq.shaded.io.opentelemetry.api.baggage;

import org.apache.rocketmq.shaded.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 - 2024 Weber Informatics LLC | Privacy Policy