public class UUIDInterceptor extends Object implements Interceptor
Modifier and Type | Class and Description |
---|---|
static class |
UUIDInterceptor.Builder
Builder implementations MUST have a public no-arg constructor
|
Modifier and Type | Field and Description |
---|---|
static String |
HEADER_NAME |
static String |
PREFIX_NAME |
static String |
PRESERVE_EXISTING_NAME |
Modifier | Constructor and Description |
---|---|
protected |
UUIDInterceptor(Context context) |
Modifier and Type | Method and Description |
---|---|
void |
close()
Perform any closing / shutdown needed by the Interceptor.
|
protected String |
generateUUID() |
protected String |
getPrefix() |
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.
|
protected boolean |
isMatch(Event event) |
public static final String HEADER_NAME
public static final String PRESERVE_EXISTING_NAME
public static final String PREFIX_NAME
protected UUIDInterceptor(Context context)
public void initialize()
Interceptor
initialize
in interface Interceptor
protected String getPrefix()
protected String generateUUID()
protected boolean isMatch(Event event)
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 close()
Interceptor
close
in interface Interceptor
Copyright © 2009-2017 Apache Software Foundation. All Rights Reserved.