Class LoggingTransferListener

  • All Implemented Interfaces:
    TransferListener

    public final class LoggingTransferListener
    extends Object
    implements TransferListener
    An example implementation of TransferListener that logs a progress bar at the INFO level. This implementation effectively rate-limits how frequently updates are logged by only logging when a new "tick" advances in the progress bar. By default, the progress bar has 20 ticks, meaning an update is only logged, at most, once every 5%.