@InterfaceAudience.Public @InterfaceStability.Stable public interface Interceptor
| Modifier and Type | Interface and Description | 
|---|---|
static interface  | 
Interceptor.Builder
Builder implementations MUST have a no-arg constructor 
 | 
| 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 initialize()
Event intercept(Event event)
Event.event - Event to be interceptednull if the Event
 is to be dropped (i.e. filtered out).List<Event> intercept(List<Event> events)
events - Input list of eventsnull. If all events are dropped,
 then an empty List is returned.void close()
Copyright © 2009-2016 Apache Software Foundation. All Rights Reserved.