Package org.gephi.utils.longtask.spi
Interface LongTask
-
- All Known Subinterfaces:
Generator
public interface LongTaskInterface that any class can implement to support progress and cancellation.- Author:
- Mathieu Bastian
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description booleancancel()Cancel the task.voidsetProgressTicket(ProgressTicket progressTicket)Set the progress ticket for the long task.
-
-
-
Method Detail
-
cancel
boolean cancel()
Cancel the task. Returnstrueif the task has been successfully cancelled,falseotherwise.- Returns:
trueif the task has been successfully cancelled,falseotherwise
-
setProgressTicket
void setProgressTicket(ProgressTicket progressTicket)
Set the progress ticket for the long task. Can't be null.- Parameters:
progressTicket- the progress ticket for this task
-
-