Class RemoteCommandProgress

java.lang.Object
com.illumon.iris.db.util.RemoteCommandProgress
All Implemented Interfaces:
StatusCallback

public class RemoteCommandProgress
extends Object
implements StatusCallback
  • Constructor Details

    • RemoteCommandProgress

      public RemoteCommandProgress​(com.fishlib.net.api.CommandSender commandSender, long sessionId)
  • Method Details

    • update

      public void update​(int progress, Supplier<String> statusSupplier)
      Description copied from interface: StatusCallback
      Update the progress % and status message.
      Specified by:
      update in interface StatusCallback
      Parameters:
      progress - percent complete (0-100)
      statusSupplier - optional message supplier
    • getValue

      public int getValue()
      Description copied from interface: StatusCallback
      get the current value of the progress object.
      Specified by:
      getValue in interface StatusCallback
      Returns:
      the % complete of the topmost ProcessStatus - a number between 1 and 100