Package com.norconex.crawler.core
Interface CrawlerCallbacks.CrawlerCommandCallback
- All Superinterfaces:
BiConsumer<CrawlerSession,Class<? extends Command>>
- All Known Implementing Classes:
BeforeFsCommand
- Enclosing class:
CrawlerCallbacks
public static interface CrawlerCallbacks.CrawlerCommandCallback
extends BiConsumer<CrawlerSession,Class<? extends Command>>
Convenience interface providing a default implementation of
execute that ignores all commands but
CrawlerCommand and
offers an overloaded accept method with a single argument.-
Method Summary
Modifier and TypeMethodDescriptionvoiddefault voidaccept(CrawlerSession session, Class<? extends Command> commandClass) Methods inherited from interface java.util.function.BiConsumer
andThen
-
Method Details
-
accept
- Specified by:
acceptin interfaceBiConsumer<CrawlerSession,Class<? extends Command>>
-
accept
-