Package us.codecraft.webmagic.recover
Class DuplicateStorageRemover
java.lang.Object
us.codecraft.webmagic.recover.DuplicateStorageRemover
- All Implemented Interfaces:
us.codecraft.webmagic.scheduler.component.DuplicateRemover
public class DuplicateStorageRemover
extends Object
implements us.codecraft.webmagic.scheduler.component.DuplicateRemover
- Author:
- :linweisen
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionint
getTotalRequestsCount
(us.codecraft.webmagic.Task task) boolean
isDuplicate
(us.codecraft.webmagic.Request request, us.codecraft.webmagic.Task task) void
resetDuplicateCheck
(us.codecraft.webmagic.Task task)
-
Constructor Details
-
DuplicateStorageRemover
-
-
Method Details
-
isDuplicate
public boolean isDuplicate(us.codecraft.webmagic.Request request, us.codecraft.webmagic.Task task) - Specified by:
isDuplicate
in interfaceus.codecraft.webmagic.scheduler.component.DuplicateRemover
-
resetDuplicateCheck
public void resetDuplicateCheck(us.codecraft.webmagic.Task task) - Specified by:
resetDuplicateCheck
in interfaceus.codecraft.webmagic.scheduler.component.DuplicateRemover
-
getTotalRequestsCount
public int getTotalRequestsCount(us.codecraft.webmagic.Task task) - Specified by:
getTotalRequestsCount
in interfaceus.codecraft.webmagic.scheduler.component.DuplicateRemover
-