Package io.opentelemetry.sdk.trace.data
Class ImmutableLinkData
- java.lang.Object
-
- io.opentelemetry.sdk.trace.data.ImmutableLinkData
-
- All Implemented Interfaces:
LinkData
- Direct Known Subclasses:
AutoValue_ImmutableLinkData
@Immutable abstract class ImmutableLinkData extends java.lang.Object implements LinkData
An immutable implementation ofLinkData.
-
-
Field Summary
Fields Modifier and Type Field Description private static AttributesDEFAULT_ATTRIBUTE_COLLECTIONprivate static intDEFAULT_ATTRIBUTE_COUNT
-
Constructor Summary
Constructors Constructor Description ImmutableLinkData()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description (package private) static LinkDatacreate(SpanContext spanContext)Returns a new immutableLinkData.(package private) static LinkDatacreate(SpanContext spanContext, Attributes attributes)Returns a new immutableLinkData.(package private) static LinkDatacreate(SpanContext spanContext, Attributes attributes, int totalAttributeCount)Returns a new immutableLinkData.-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface io.opentelemetry.sdk.trace.data.LinkData
getAttributes, getSpanContext, getTotalAttributeCount
-
-
-
-
Field Detail
-
DEFAULT_ATTRIBUTE_COLLECTION
private static final Attributes DEFAULT_ATTRIBUTE_COLLECTION
-
DEFAULT_ATTRIBUTE_COUNT
private static final int DEFAULT_ATTRIBUTE_COUNT
- See Also:
- Constant Field Values
-
-
Method Detail
-
create
static LinkData create(SpanContext spanContext)
Description copied from interface:LinkDataReturns a new immutableLinkData.- Parameters:
spanContext- theSpanContextof thisLinkData.- Returns:
- a new immutable
LinkData
-
create
static LinkData create(SpanContext spanContext, Attributes attributes)
Description copied from interface:LinkDataReturns a new immutableLinkData.- Parameters:
spanContext- theSpanContextof thisLinkData.attributes- the attributes of thisLinkData.- Returns:
- a new immutable
LinkData
-
create
static LinkData create(SpanContext spanContext, Attributes attributes, int totalAttributeCount)
Description copied from interface:LinkDataReturns a new immutableLinkData.- Parameters:
spanContext- theSpanContextof thisLinkData.attributes- the attributes of thisLinkData.totalAttributeCount- the total number of attributed for thisLinkData.- Returns:
- a new immutable
LinkData
-
-