Package io.perfmark

Class Link


  • public final class Link
    extends java.lang.Object
    A link represents a linkage between asynchronous tasks. A link is created inside of a started task. The resulting Link object can then be passed to other asynchronous tasks to associate them with the original task.

    A source task may have multiple outbound links pointing to other tasks. However, calling PerfMark.linkIn(Link) only work if it is the first such call. Subsequent calls have no effect.

    • Field Summary

      Fields 
      Modifier and Type Field Description
      (package private) long linkId  
    • Constructor Summary

      Constructors 
      Constructor Description
      Link​(long linkId)  
    • Method Summary

      All Methods Instance Methods Concrete Methods Deprecated Methods 
      Modifier and Type Method Description
      void link()
      Deprecated.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • linkId

        final long linkId
    • Constructor Detail

      • Link

        Link​(long linkId)