Class CheckerConsumer

  • All Implemented Interfaces:
    Consumer

    public class CheckerConsumer
    extends Object
    implements Consumer
    Class for removing Checker data for a Bitstreams based on deletion events.
    Version:
    $Revision$
    • Constructor Detail

      • CheckerConsumer

        public CheckerConsumer()
    • Method Detail

      • initialize

        public void initialize()
                        throws Exception
        Initialize - allocate any resources required to operate. Called at the start of ANY sequence of event consume() calls.
        Specified by:
        initialize in interface Consumer
        Throws:
        Exception - if error
      • consume

        public void consume​(Context ctx,
                            Event event)
                     throws Exception
        Consume an event
        Specified by:
        consume in interface Consumer
        Parameters:
        ctx - the execution context object
        event - the content event
        Throws:
        Exception - if error
      • end

        public void end​(Context ctx)
                 throws Exception
        Signal that there are no more events queued in this event stream.
        Specified by:
        end in interface Consumer
        Parameters:
        ctx - Context
        Throws:
        Exception - if error
      • finish

        public void finish​(Context ctx)
                    throws Exception
        Finish - free any allocated resources. Called when consumer is being released
        Specified by:
        finish in interface Consumer
        Parameters:
        ctx - Context
        Throws:
        Exception - if error