1 package us.codecraft.webmagic.scheduler; 2 3 import us.codecraft.webmagic.Task; 4 5 /** 6 * The scheduler whose requests can be counted for monitor. 7 * 8 * @author code4crafter@gmail.com 9 * @since 0.5.0 10 */ 11 public interface MonitorableScheduler extends Scheduler { 12 13 public int getLeftRequestsCount(Task task); 14 15 public int getTotalRequestsCount(Task task); 16 17 }