|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.flume.interceptor.TimestampInterceptor
public class TimestampInterceptor
Simple Interceptor class that sets the current system timestamp on all events that are intercepted. By convention, this timestamp header is named "timestamp" and its format is a "stringified" long timestamp in milliseconds since the UNIX epoch.
| Nested Class Summary | |
|---|---|
static class |
TimestampInterceptor.Builder
Builder which builds new instances of the TimestampInterceptor. |
static class |
TimestampInterceptor.Constants
|
| 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)
Modifies events in-place. |
List<Event> |
intercept(List<Event> events)
Delegates to intercept(Event) in a loop. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public void initialize()
Interceptor
initialize in interface Interceptorpublic Event intercept(Event event)
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)
intercept(Event) in a loop.
intercept in interface Interceptorevents -
public void close()
Interceptor
close in interface Interceptor
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||