Class AbstractThreadEvent

    • Constructor Detail

      • AbstractThreadEvent

        public AbstractThreadEvent​(java.lang.String origin,
                                   java.lang.Long parentId,
                                   java.lang.Long childId)
        Create a new ThreadEvent
        Parameters:
        origin - the origin of the Event, presumably 'Concurrency'
        parentId - threadId of parent thread
        childId - threadId of worker thread
    • Method Detail

      • getParentId

        public long getParentId()
        Get the parent threadId
        Specified by:
        getParentId in interface ThreadEvent
        Returns:
        the parent threadId
      • getChildId

        public long getChildId()
        Get the child threadId
        Specified by:
        getChildId in interface ThreadEvent
        Returns:
        the child threadId
      • getOperation

        public abstract ThreadEvent.Operation getOperation()
        Get the particular type of ThreadEvent ENTERING or EXITING
        Specified by:
        getOperation in interface ThreadEvent
        Returns:
        the specific thread Operation