T
- the current Service Task typepublic interface ServiceTask<T> extends Worker<T>
exceptionProperty, messageProperty, progressProperty, runningProperty, stateProperty, titleProperty, totalWorkProperty, valueProperty, workDoneProperty
Worker.State
Modifier and Type | Method and Description |
---|---|
boolean |
checkProgressRatio(double newWorkDone,
double totalWork,
double amountThreshold)
Check if the task has enough progressed according to the given threshold.
|
Wave |
getAssociatedWave() |
String |
getServiceHandlerName()
Return the full service handler name.
|
void |
taskAchieved()
The task has been terminated because the source wave was consumed or has failed.
|
cancel, exceptionProperty, getException, getMessage, getProgress, getState, getTitle, getTotalWork, getValue, getWorkDone, isRunning, messageProperty, progressProperty, runningProperty, stateProperty, titleProperty, totalWorkProperty, valueProperty, workDoneProperty
String getServiceHandlerName()
void taskAchieved()
Wave getAssociatedWave()
boolean checkProgressRatio(double newWorkDone, double totalWork, double amountThreshold)
newWorkDone
- the amount of work donetotalWork
- the total amount of workamountThreshold
- the minimum threshold amount to return true; range is [0.0 - 100.0] (typically 1.0 for 1%)Copyright © 2011–2016 JRebirth OSS. All rights reserved.