public interface IThreadListener
Modifier and Type | Method and Description |
---|---|
void |
endedProperly()
This method is called by the thread, after it has been finished properly.
|
void |
interrupted(java.lang.String pReason)
This method is called by the thread, if it was interrupted and could not be finished properly.
|
void |
setProgressStatus(double dProgress,
java.lang.String pCurrentWork)
This method is called by the thread to tell all its listeners what it is currently processing and
and which percentage of the work has already been finished.
|
void setProgressStatus(double dProgress, java.lang.String pCurrentWork)
dProgress
- The percentage of the work that has already been finished.pCurrentWork
- A String
explaning what the thread currently processes.
This String
can also be null
.void endedProperly()
void interrupted(java.lang.String pReason)
String
representation of the reason, why the thread has been interrupted is given as
parameter.pReason
- The reason, why the thread has been interrupted as String
.