Class RedisPriorityScheduler

java.lang.Object
us.codecraft.webmagic.scheduler.DuplicateRemovedScheduler
us.codecraft.webmagic.scheduler.RedisScheduler
us.codecraft.webmagic.scheduler.RedisPriorityScheduler
All Implemented Interfaces:
us.codecraft.webmagic.scheduler.component.DuplicateRemover, us.codecraft.webmagic.scheduler.MonitorableScheduler, us.codecraft.webmagic.scheduler.Scheduler

public class RedisPriorityScheduler extends RedisScheduler
the redis scheduler with priority
Author:
sai Created by sai on 16-5-27.
  • Constructor Details

    • RedisPriorityScheduler

      public RedisPriorityScheduler(String host)
    • RedisPriorityScheduler

      public RedisPriorityScheduler(redis.clients.jedis.JedisPool pool)
  • Method Details

    • pushWhenNoDuplicate

      protected void pushWhenNoDuplicate(us.codecraft.webmagic.Request request, us.codecraft.webmagic.Task task)
      Overrides:
      pushWhenNoDuplicate in class RedisScheduler
    • poll

      public us.codecraft.webmagic.Request poll(us.codecraft.webmagic.Task task)
      Specified by:
      poll in interface us.codecraft.webmagic.scheduler.Scheduler
      Overrides:
      poll in class RedisScheduler
    • resetDuplicateCheck

      public void resetDuplicateCheck(us.codecraft.webmagic.Task task)
      Specified by:
      resetDuplicateCheck in interface us.codecraft.webmagic.scheduler.component.DuplicateRemover
      Overrides:
      resetDuplicateCheck in class RedisScheduler