Package com.sshtools.client.tasks
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.
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
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
-
Method Details
-
message
Display a message. SeeMessageFormat
for expected format. If no arguments are supplied, the formatting pattern should be displayed as raw text.- Parameters:
fmt
- formatting pattern.args
- arguments
-
error
Display an error.- Parameters:
exception
- error
-
error
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
- errorargs
- arguments
-