|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.flume.interceptor.InterceptorChain
public class InterceptorChain
Implementation of Interceptor that calls a list of other Interceptors serially.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from interface org.apache.flume.interceptor.Interceptor |
|---|
Interceptor.Builder |
| Constructor Summary | |
|---|---|
InterceptorChain()
|
|
| Method Summary | |
|---|---|
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)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public InterceptorChain()
| Method Detail |
|---|
public void setInterceptors(List<Interceptor> interceptors)
public Event intercept(Event event)
InterceptorEvent.
intercept in interface Interceptorevent - Event to be intercepted
null if the Event
is to be dropped (i.e. filtered out).public List<Event> intercept(List<Event> events)
Interceptor
intercept in interface Interceptorevents - Input list of events
null. If all events are dropped,
then an empty List is returned.public void initialize()
Interceptor
initialize in interface Interceptorpublic void close()
Interceptor
close in interface Interceptor
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||