public interface Notifier
| Modifier and Type | Method and Description |
|---|---|
void |
progressUndetermined()
Notifies about a task progress which is undetermined
|
OngoingNotification |
stepsCompleted(BigDecimal completed)
Notifies about a certain amount of steps completed:
notifyEvent().stepsCompleted(new BigDecimal("2").outOf(10);
|
OngoingNotification |
stepsCompleted(int completed)
Notifies about a certain amount of steps completed:
notifyEvent().stepsCompleted(2).outOf(10);
|
void |
taskCompleted(long executionTime)
Notifies about a completed task
|
void |
taskFailed(Exception e)
Notifies about a failed task
|
void |
taskStarted()
Notifies about a started task
|
void taskFailed(Exception e)
e - failure exceptionvoid taskCompleted(long executionTime)
executionTime - number of millis for the task to completevoid taskStarted()
void progressUndetermined()
OngoingNotification stepsCompleted(int completed)
notifyEvent().stepsCompleted(2).outOf(10);
completed - number of steps completedOngoingNotification to perform the notificationOngoingNotification stepsCompleted(BigDecimal completed)
notifyEvent().stepsCompleted(new BigDecimal("2").outOf(10);
completed - number of steps completedOngoingNotification to perform the notificationCopyright © 2015. All Rights Reserved.