Class ThreadExitEvent
- java.lang.Object
-
- software.amazon.disco.agent.event.AbstractEvent
-
- software.amazon.disco.agent.event.AbstractThreadEvent
-
- software.amazon.disco.agent.event.ThreadExitEvent
-
- All Implemented Interfaces:
Event,ThreadEvent
public class ThreadExitEvent extends AbstractThreadEvent
Concrete ThreadEvent for when a worker thread is finished, and the inner FunctionalInterface is about to return
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface software.amazon.disco.agent.event.ThreadEvent
ThreadEvent.Operation
-
-
Field Summary
-
Fields inherited from class software.amazon.disco.agent.event.AbstractEvent
data, origin
-
-
Constructor Summary
Constructors Constructor Description ThreadExitEvent(java.lang.String origin, java.lang.Long parentId, java.lang.Long childId)Construct a new ThreadExitEvent
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ThreadEvent.OperationgetOperation()Get the particular type of ThreadEvent ENTERING or EXITING-
Methods inherited from class software.amazon.disco.agent.event.AbstractThreadEvent
getChildId, getParentId
-
Methods inherited from class software.amazon.disco.agent.event.AbstractEvent
getData, getOrigin, withData
-
-
-
-
Constructor Detail
-
ThreadExitEvent
public ThreadExitEvent(java.lang.String origin, java.lang.Long parentId, java.lang.Long childId)Construct a new ThreadExitEvent- Parameters:
origin- origin of the event, presumably 'Concurrency'parentId- the threadId of the parent threadchildId- the threadId of the worker thread
-
-
Method Detail
-
getOperation
public ThreadEvent.Operation getOperation()
Get the particular type of ThreadEvent ENTERING or EXITING- Specified by:
getOperationin interfaceThreadEvent- Specified by:
getOperationin classAbstractThreadEvent- Returns:
- the specific thread Operation
-
-