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

fun.fengwk.convention4j.tracer.Reference Maven / Gradle / Ivy

The newest version!
package fun.fengwk.convention4j.tracer;

import io.opentracing.SpanContext;
import lombok.Data;

import java.util.Objects;

/**
 * @author fengwk
 */
@Data
public class Reference {

    private final String referenceType;
    private final SpanContext spanContext;

    public Reference(String referenceType, SpanContext spanContext) {
        this.referenceType = Objects.requireNonNull(referenceType, "Reference type must not be null");
        this.spanContext = Objects.requireNonNull(spanContext, "Span context must not be null");
    }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy