org.perf4j.helpers
Interface GenericAsyncCoalescingStatisticsAppender.GroupedTimingStatisticsHandler

Enclosing class:
GenericAsyncCoalescingStatisticsAppender

public static interface GenericAsyncCoalescingStatisticsAppender.GroupedTimingStatisticsHandler

The GroupedTimingStatisticsHandler defines a callback interface so that logging-framework-specific implementations can decide what to do with the coalesced GroupedTimingStatistics.


Method Summary
 void error(String errorMessage)
          This method is called whenever an error occurs that should be handled in a logging-framework specific manner.
 void handle(GroupedTimingStatistics statistics)
          This callback method is called for each GroupedTimingStatistics instance that is formed by coalescing individual StopWatch messages from the logs.
 

Method Detail

handle

void handle(GroupedTimingStatistics statistics)
This callback method is called for each GroupedTimingStatistics instance that is formed by coalescing individual StopWatch messages from the logs. Implementations will most likely pass this instance to downstream appenders or handlers.

Parameters:
statistics - The GroupedTimingStatistics instance.

error

void error(String errorMessage)
This method is called whenever an error occurs that should be handled in a logging-framework specific manner.

Parameters:
errorMessage - The message that describes the error.


Copyright © 2008-2011 perf4j.org. All Rights Reserved.