public class FilteringHandler extends Object implements Handler
Handler
s that allows additional filtering for each
handler. Filters are a conjunction, hence one failure prevents delivery.Constructor and Description |
---|
FilteringHandler(Handler decorated,
Filter filter)
Creates a filtering handler that wraps another handler and takes one
additional filter.
|
FilteringHandler(Handler decorated,
Set<Filter> filters)
Creates a filtering handler that wraps another handler and takes a set of
filters to apply.
|
public FilteringHandler(Handler decorated, Filter filter)
decorated
- handler to wrap and call if filter matchesfilter
- the additional filter to applypublic void internalNotify(Event event)
Handler
internalNotify
in interface Handler
event
- the received event the handler should processCopyright © 2018 CoR-Lab. All rights reserved.