public class KafkaEmitter extends Object implements com.metamx.emitter.core.Emitter
| Constructor and Description |
|---|
KafkaEmitter(KafkaEmitterConfig config,
com.fasterxml.jackson.databind.ObjectMapper jsonMapper) |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
void |
emit(com.metamx.emitter.core.Event event) |
void |
flush() |
void |
start() |
public KafkaEmitter(KafkaEmitterConfig config, com.fasterxml.jackson.databind.ObjectMapper jsonMapper)
public void start()
start in interface com.metamx.emitter.core.Emitterpublic void emit(com.metamx.emitter.core.Event event)
emit in interface com.metamx.emitter.core.Emitterpublic void flush()
throws IOException
flush in interface com.metamx.emitter.core.Emitterflush in interface FlushableIOExceptionpublic void close()
throws IOException
close in interface com.metamx.emitter.core.Emitterclose in interface Closeableclose in interface AutoCloseableIOExceptionCopyright © 2011–2017. All rights reserved.