public class StatsDEmitter extends Object implements com.metamx.emitter.core.Emitter
Constructor and Description |
---|
StatsDEmitter(StatsDEmitterConfig config,
com.fasterxml.jackson.databind.ObjectMapper mapper) |
StatsDEmitter(StatsDEmitterConfig config,
com.fasterxml.jackson.databind.ObjectMapper mapper,
com.timgroup.statsd.StatsDClient client) |
Modifier and Type | Method and Description |
---|---|
void |
close() |
void |
emit(com.metamx.emitter.core.Event event) |
void |
flush() |
void |
start() |
public StatsDEmitter(StatsDEmitterConfig config, com.fasterxml.jackson.databind.ObjectMapper mapper)
public StatsDEmitter(StatsDEmitterConfig config, com.fasterxml.jackson.databind.ObjectMapper mapper, com.timgroup.statsd.StatsDClient client)
public void start()
start
in interface com.metamx.emitter.core.Emitter
public void emit(com.metamx.emitter.core.Event event)
emit
in interface com.metamx.emitter.core.Emitter
public void flush() throws IOException
flush
in interface com.metamx.emitter.core.Emitter
flush
in interface Flushable
IOException
public void close() throws IOException
close
in interface com.metamx.emitter.core.Emitter
close
in interface Closeable
close
in interface AutoCloseable
IOException
Copyright © 2011–2017. All rights reserved.