mirror of https://github.com/apache/druid.git
ManageLifecycle DropwizardEmitter instantiation. (#17451)
This commit is contained in:
parent
8850023811
commit
d8e4be654f
|
@ -28,6 +28,7 @@ import com.google.inject.Provides;
|
|||
import com.google.inject.name.Named;
|
||||
import com.google.inject.name.Names;
|
||||
import org.apache.druid.guice.JsonConfigProvider;
|
||||
import org.apache.druid.guice.ManageLifecycle;
|
||||
import org.apache.druid.initialization.DruidModule;
|
||||
import org.apache.druid.java.util.emitter.core.Emitter;
|
||||
|
||||
|
@ -52,6 +53,7 @@ public class DropwizardEmitterModule implements DruidModule
|
|||
}
|
||||
|
||||
@Provides
|
||||
@ManageLifecycle
|
||||
@Named(EMITTER_TYPE)
|
||||
public Emitter getEmitter(
|
||||
DropwizardEmitterConfig dropwizardEmitterConfig,
|
||||
|
|
Loading…
Reference in New Issue