Class Crawler.AsyncCrawlerCallbackProcessor

  • All Implemented Interfaces:
    Callback
    Enclosing class:
    Crawler

    public static final class Crawler.AsyncCrawlerCallbackProcessor
    extends java.lang.Object
    implements Callback
    This class methods is executed upon the completion of fetcher.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void cancelled​(Request request)
      Method to be call upon cancellation of request.
      void completed​(Request request, Response response)
      Method to be call upon completion of request.
      void failed​(Request request, java.lang.Exception ex)
      Method to be call upon failure of request.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • completed

        public void completed​(Request request,
                              Response response)
        Description copied from interface: Callback
        Method to be call upon completion of request.
        Specified by:
        completed in interface Callback
        Parameters:
        request - Request sent.
        response - Response returned.
      • failed

        public void failed​(Request request,
                           java.lang.Exception ex)
        Description copied from interface: Callback
        Method to be call upon failure of request.
        Specified by:
        failed in interface Callback
        Parameters:
        request - Request sent.
        ex - Exception received.
      • cancelled

        public void cancelled​(Request request)
        Description copied from interface: Callback
        Method to be call upon cancellation of request.
        Specified by:
        cancelled in interface Callback
        Parameters:
        request - Request sent.