Interface AbstractOptimisedTask.ProgressMessages

Enclosing class:
AbstractOptimisedTask<TARGET,LOCALFILE>
Functional Interface:
This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

@FunctionalInterface public static interface AbstractOptimisedTask.ProgressMessages
Interface to be implemented by classes that monitor the progress of file transfers and output feedback.
Each file will have it's own instance of a AbstractOptimisedTask.ProgressMessages, as created by the Function supplied to AbstractOptimisedTask.AbstractOptimisedTaskBuilder.withProgressMessages(ProgressMessages).
  • Method Summary

    Modifier and Type
    Method
    Description
    default void
    error(String fmt, Throwable exception, Object... args)
    Display an (optional) error trace along with an (optional) message.
    default void
    error(Throwable exception)
    Display an error.
    void
    message(String fmt, Object... args)
    Display a message.
  • Method Details

    • message

      void message(String fmt, Object... args)
      Display a message. See MessageFormat for expected format. If no arguments are supplied, the formatting pattern should be displayed as raw text.
      Parameters:
      fmt - formatting pattern.
      args - arguments
    • error

      default void error(Throwable exception)
      Display an error.
      Parameters:
      exception - error
    • error

      default void error(String fmt, Throwable exception, Object... args)
      Display an (optional) error trace along with an (optional) message. If no arguments are supplied, the formatting pattern should be displayed as raw text.
      Parameters:
      fmt - formatting pattern.
      exception - error
      args - arguments