Class RestockTask


  • public class RestockTask
    extends Task
    A default implementation of Task to perform the restocking of items. You can submit items to buy or sell via StockMarketService, any submissions will set the task active. This task is blocking and initialized with a priority of 1000.
    • Field Detail

      • GRAND_EXCHANGE

        public static final Position GRAND_EXCHANGE
    • Method Detail

      • execute

        public boolean execute()
        Specified by:
        execute in class Task
      • getWalkToGrandExchangeFunction

        public java.util.function.Consumer<Task> getWalkToGrandExchangeFunction()
      • setWalkToGrandExchangeFunction

        public void setWalkToGrandExchangeFunction​(java.util.function.Consumer<Task> walkToGrandExchange)