Enum Link.Type

java.lang.Object
java.lang.Enum<Link.Type>
io.opencensus.trace.Link.Type
All Implemented Interfaces:
Serializable, Comparable<Link.Type>
Enclosing class:
Link

public static enum Link.Type extends Enum<Link.Type>
The relationship with the linked Span relative to the current Span.
Since:
0.5
  • Enum Constant Details

    • CHILD_LINKED_SPAN

      public static final Link.Type CHILD_LINKED_SPAN
      When the linked Span is a child of the current Span.
      Since:
      0.5
    • PARENT_LINKED_SPAN

      public static final Link.Type PARENT_LINKED_SPAN
      When the linked Span is a parent of the current Span.
      Since:
      0.5
  • Constructor Details

    • Type

      private Type()
  • Method Details

    • values

      public static Link.Type[] values()
      Returns an array containing the constants of this enum type, in the order they are declared.
      Returns:
      an array containing the constants of this enum type, in the order they are declared
    • valueOf

      public static Link.Type valueOf(String name)
      Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum type has no constant with the specified name
      NullPointerException - if the argument is null