org.jwall.web.audit
Interface AuditEventListener

All Superinterfaces:
EventListener<AuditEvent>
All Known Subinterfaces:
SessionTracker
All Known Implementing Classes:
AbstractSessionTracker, AuditEventConsoleSender, AuditEventMLogcReceiver, AuditEventQueue, AuditEventStreamHandler, AuditEventStreamHandler, AuditEventURLConnectionSender, AuditLogFileWriter, BufferedAuditEventWriter, CookieSessionTracker, HeuristicSessionTracker, NetworkClientWorkerThread, NetworkEventServer, RFICollector

public interface AuditEventListener
extends EventListener<AuditEvent>

This interface defines the methods all AuditEvent persistence-classes have to implement. Also this interface needs to be implemented by the classes that are thought to register to an event dispatcher and are then notified on arrival of new events.

Author:
Christian Bockermann <chris@jwall.org>

Method Summary
 void eventArrived(AuditEvent evt)
          This method is called when a new event arrives at the listener.
 void eventsArrived(Collection<AuditEvent> events)
          Deprecated.  
 

Method Detail

eventArrived

void eventArrived(AuditEvent evt)
This method is called when a new event arrives at the listener. The Listener should be threaded and response-time to this method should be as small as possible.

After the dispatcher calls this method each listener gets a call to #notify(), thus a listener might wait for packets to arrive.

Specified by:
eventArrived in interface EventListener<AuditEvent>
Parameters:
evt - The event which arrived.

eventsArrived

void eventsArrived(Collection<AuditEvent> events)
Deprecated. 

This method is called for notifying the listener of arrival of several events in a block. Usually, this method is implemented by calling eventArrived(AuditEvent) for each of the given events, but may be handled in a more efficient way by implementations capable of processing blocks of events.

Parameters:
events - The block of events arrived.


Copyright © 2012 jwall.org. All Rights Reserved.