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()
Interceptorinitialize in interface Interceptorprotected String getPrefix()
protected String generateUUID()
protected boolean isMatch(Event event)
public Event intercept(Event event)
InterceptorEvent.intercept in interface Interceptorevent - Event to be interceptednull if the Event
is to be dropped (i.e. filtered out).public List<Event> intercept(List<Event> events)
Interceptorintercept in interface Interceptorevents - Input list of eventsnull. If all events are dropped,
then an empty List is returned.public void close()
Interceptorclose in interface InterceptorCopyright © 2009-2022 Apache Software Foundation. All Rights Reserved.