public interface ProvisionListener
Modifier and Type | Interface and Description |
---|---|
static class |
ProvisionListener.NullListener |
Modifier and Type | Method and Description |
---|---|
default boolean |
isCancelled()
Indicates if user cancelled the process.
|
default void |
logMessage(java.lang.String message,
ProvisionException e)
Method will be called for general information, warnings and errors.
|
default void |
printMessage(java.lang.String message)
Method will be called for general information on the progress.
|
default void |
setProgress(double fraction)
Method will be called with partial progress representation.
|
default void printMessage(@NonNull java.lang.String message)
message
- the received message.default void logMessage(@NonNull java.lang.String message, @Nullable ProvisionException e)
message
- the received message.e
- a possible exception.default void setProgress(double fraction)
fraction
- estimated fraction of the process already run.default boolean isCancelled()
true
if it's been cancelled.