org.jwall.audit
Interface EventProcessorPipeline<E extends Event>

Type Parameters:
E -
All Known Implementing Classes:
AuditEventProcessorPipeline, LogMessageProcessorPipeline

public interface EventProcessorPipeline<E extends Event>

This interface defines an abstract event processor pipeline. Processors can subscribe to this pipeline to act upon an event.

Author:
Christian Bockermann <chris@jwall.org>

Method Summary
 Double getPriority(EventProcessor<E> proc)
           
 void process(E event)
           
 void register(Double priority, EventProcessor<E> proc)
          Register a new event processor in this pipeline.
 void unregister(EventProcessor<E> proc)
          Unregister the given processor from this pipeline.
 

Method Detail

process

void process(E event)
             throws EventProcessorException
Parameters:
event -
Throws:
EventProcessorException

register

void register(Double priority,
              EventProcessor<E> proc)
Register a new event processor in this pipeline. The processor may specify a priority, signaling at which position it wants to be inserted. Processing is done from low numbers to high numbers. Priorities smaller than 1 and larger than 10 are reserved to internal processors. Registering a non-internal processor with invalid priority will register that processor with the nearest valid priority value.

Parameters:
priority - The priority with which this processor is inserted into the pipeline.
proc - The new processor to be added to the pipeline.

unregister

void unregister(EventProcessor<E> proc)
Unregister the given processor from this pipeline.

Parameters:
proc - The processor to remove from the pipeline.

getPriority

Double getPriority(EventProcessor<E> proc)


Copyright © 2012 jwall.org. All Rights Reserved.