Class TraceComponentImplBase


  • public final class TraceComponentImplBase
    extends java.lang.Object
    Helper class to allow sharing the code for all the TraceComponent implementations. This class cannot use inheritance because in version 0.5.* the constructor of the TraceComponent is package protected.

    This can be changed back to inheritance when version 0.5.* is no longer supported.

    • Constructor Detail

      • TraceComponentImplBase

        public TraceComponentImplBase​(Clock clock,
                                      RandomHandler randomHandler,
                                      EventQueue eventQueue)
        Creates a new TraceComponentImplBase.
        Parameters:
        clock - the clock to use throughout tracing.
        randomHandler - the random number generator for generating trace and span IDs.
        eventQueue - the queue implementation.