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

io.opentelemetry.javaagent.instrumentation.netty.v3_8.NettyConnectionContext Maven / Gradle / Ivy

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

package io.opentelemetry.javaagent.instrumentation.netty.v3_8;

import io.opentelemetry.context.Context;
import javax.annotation.Nullable;

public class NettyConnectionContext {
  private Context connectionContext;

  public NettyConnectionContext(Context connectionContext) {
    this.connectionContext = connectionContext;
  }

  @Nullable
  public Context get() {
    return connectionContext;
  }

  @Nullable
  public Context remove() {
    Context context = this.connectionContext;
    connectionContext = null;
    return context;
  }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy