public class CuratorModule extends Object implements com.google.inject.Module
| Constructor and Description |
|---|
CuratorModule() |
CuratorModule(boolean haltOnFailedStart) |
| Modifier and Type | Method and Description |
|---|---|
void |
configure(com.google.inject.Binder binder) |
static org.apache.curator.framework.CuratorFramework |
createCurator(CuratorConfig config)
Create the Curator framework outside of Guice given the ZK config.
|
org.apache.curator.framework.CuratorFramework |
makeCurator(ZkEnablementConfig zkEnablementConfig,
CuratorConfig config,
Lifecycle lifecycle)
Provide the Curator framework via Guice, integrated with the Druid lifecycle.
|
public CuratorModule()
public CuratorModule(boolean haltOnFailedStart)
haltOnFailedStart - set to true if the JVM needs to be halted within 30 seconds of failed initialization
due to unhandled curator exceptions.public void configure(com.google.inject.Binder binder)
configure in interface com.google.inject.Modulepublic static org.apache.curator.framework.CuratorFramework createCurator(CuratorConfig config)
@Provides public org.apache.curator.framework.CuratorFramework makeCurator(ZkEnablementConfig zkEnablementConfig, CuratorConfig config, Lifecycle lifecycle)
Copyright © 2011–2023 The Apache Software Foundation. All rights reserved.