public class ScribeEventListener extends Object implements BuckEventListener
BuckEventListener
that serializes events to JSON and sends them to Scribe.Constructor and Description |
---|
ScribeEventListener(ScribeEventListenerConfig config,
ScribeLogger logger,
ExecutorService dispatcher)
Create new instance of
ScribeEventListener |
Modifier and Type | Method and Description |
---|---|
void |
handle(BuckEvent event) |
boolean |
isEnabledEvent(BuckEvent event)
Returns true if the event should be sent to scribe; false otherwise.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
close
public ScribeEventListener(ScribeEventListenerConfig config, ScribeLogger logger, ExecutorService dispatcher)
ScribeEventListener
logger
- The actual scribe logger used to accept messagesdispatcher
- Executor service used to dispatch messages