public class InterceptorChain extends Object implements Interceptor
Interceptor.Builder
Constructor and Description |
---|
InterceptorChain() |
Modifier and Type | Method and Description |
---|---|
void |
close()
Perform any closing / shutdown needed by the Interceptor.
|
void |
initialize()
Any initialization / startup needed by the Interceptor.
|
Event |
intercept(Event event)
Interception of a single
Event . |
List<Event> |
intercept(List<Event> events)
Interception of a batch of events.
|
void |
setInterceptors(List<Interceptor> interceptors) |
public void setInterceptors(List<Interceptor> interceptors)
public Event intercept(Event event)
Interceptor
Event
.intercept
in interface Interceptor
event
- Event to be interceptednull
if the Event
is to be dropped (i.e. filtered out).public List<Event> intercept(List<Event> events)
Interceptor
intercept
in interface Interceptor
events
- Input list of eventsnull
. If all events are dropped,
then an empty List is returned.public void initialize()
Interceptor
initialize
in interface Interceptor
public void close()
Interceptor
close
in interface Interceptor
Copyright © 2009–2019 Apache Software Foundation. All rights reserved.