Class RunningStatusController<TDef extends IElementDef>

  • Type Parameters:
    TDef - type of definition of decorated processor
    All Implemented Interfaces:
    Processor<TDef>

    public final class RunningStatusController<TDef extends IElementDef>
    extends AbstractProcessorDecorator<TDef>
    AbstractProcessorDecorator implementation which decorates Processor#run(Scraper, DynamicScopeContext) method in the way that it enters to the Monitor using Monitor.Guard verifying that processing is not paused. Otherwise it wait until Monitor.Guard allows to continue processing. Monitor and Monitor.Guard instances are retrieved using InjectorHelper.
    Since:
    2.1-SNAPSHOT
    Version:
    %I%, %G%
    Author:
    mczapiewski