public class ThreadDoneEvent
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static int |
FINAL_STATE_CANCELED |
static int |
FINAL_STATE_FAILED |
static int |
FINAL_STATE_SUCCESSFUL |
Constructor and Description |
---|
ThreadDoneEvent(int finalState,
java.lang.String eventMessage,
java.lang.Exception exception)
Constructs a new thread done event.
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getEventMessage()
Returns the event message.
|
java.lang.Exception |
getException()
Returns the exception or null if no exception occurred.
|
int |
getFinalState()
Returns the final state of the thread.
|
boolean |
wasSuccessful()
Returns true if the thread ended successful.
|
public static final int FINAL_STATE_SUCCESSFUL
public static final int FINAL_STATE_CANCELED
public static final int FINAL_STATE_FAILED
public ThreadDoneEvent(int finalState, java.lang.String eventMessage, java.lang.Exception exception)
finalState
- eventMessage
- a message to ship with the eventexception
- the exception if there has occurred anypublic int getFinalState()
FINAL_STATE_SUCCESSFUL
,
FINAL_STATE_CANCELED
,
FINAL_STATE_FAILED
public boolean wasSuccessful()
public java.lang.String getEventMessage()
public java.lang.Exception getException()
Copyright 1998-2023 Christoph Mueller, Kaerntner Str. 56, D-70469 Stuttgart, Germany, https://www.perpus.de