blob: 7aec38f44aa1b7637c00a180226761ecc30511a7 [file] [log] [blame]
package net.floodlightcontroller.debugevent;
/**
* eventUPdater is used to log events for pre-registered events.
*/
public interface IEventUpdater<T> {
/**
* Logs the instance of the event thread-locally. Flushing to the global
* circular buffer for this event is delayed resulting in better performance.
* This method should typically be used by those events that happen in the
* packet processing pipeline
*
* @param event an instance of the user-defined event of type T
*/
public void updateEventNoFlush(T event);
/**
* Logs the instance of the event thread-locally and immediated flushes
* to the global circular buffer for this event.
* This method should typically be used by those events that happen
* outside the packet processing pipeline
*
* @param event an instance of the user-defined event of type T
*/
public void updateEventWithFlush(T event);
}