org.javasimon.callback
Interface FilterCallback

All Superinterfaces:
Callback
All Known Implementing Classes:
CompositeFilterCallback

public interface FilterCallback
extends Callback

FilterCallback extends Callback adding filtering capabilities. FilterRules can be added to the filter callback, these allow selective event propagation to sub-callback(s).

Author:
Richard "Virgo" Richter

Nested Class Summary
 
Nested classes/interfaces inherited from interface org.javasimon.callback.Callback
Callback.Event
 
Method Summary
 void addRule(FilterRule.Type type, String condition, String pattern, Callback.Event... events)
          Adds the rule to the filter.
 
Methods inherited from interface org.javasimon.callback.Callback
cleanup, initialize, onCounterDecrease, onCounterIncrease, onCounterSet, onManagerClear, onManagerMessage, onManagerWarning, onSimonCreated, onSimonDestroyed, onSimonReset, onStopwatchAdd, onStopwatchAdd, onStopwatchStart, onStopwatchStop
 

Method Detail

addRule

void addRule(FilterRule.Type type,
             String condition,
             String pattern,
             Callback.Event... events)
Adds the rule to the filter.

Parameters:
type - rule type (must, suffice, must-not)
condition - further conditions of the rule
pattern - Simon pattern
events - event list (empty applies to all, can be omitted)


Copyright © 2013. All Rights Reserved.