Class DefaultManagedGroupFactory
- java.lang.Object
-
- org.apache.camel.component.zookeepermaster.group.DefaultManagedGroupFactory
-
- All Implemented Interfaces:
GroupFactory,ManagedGroupFactory
public class DefaultManagedGroupFactory extends Object implements ManagedGroupFactory
-
-
Constructor Summary
Constructors Constructor Description DefaultManagedGroupFactory(org.apache.curator.framework.CuratorFramework curator, boolean shouldClose)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclose()<T extends NodeState>
Group<T>createGroup(String path, Class<T> clazz)<T extends NodeState>
Group<T>createGroup(String path, Class<T> clazz, ThreadFactory threadFactory)<T extends NodeState>
Group<T>createMultiGroup(String path, Class<T> clazz)<T extends NodeState>
Group<T>createMultiGroup(String path, Class<T> clazz, ThreadFactory threadFactory)org.apache.curator.framework.CuratorFrameworkgetCurator()-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.apache.camel.component.zookeepermaster.group.ManagedGroupFactory
setClassLoader
-
-
-
-
Method Detail
-
getCurator
public org.apache.curator.framework.CuratorFramework getCurator()
- Specified by:
getCuratorin interfaceManagedGroupFactory
-
createGroup
public <T extends NodeState> Group<T> createGroup(String path, Class<T> clazz)
- Specified by:
createGroupin interfaceGroupFactory
-
createGroup
public <T extends NodeState> Group<T> createGroup(String path, Class<T> clazz, ThreadFactory threadFactory)
- Specified by:
createGroupin interfaceGroupFactory
-
createMultiGroup
public <T extends NodeState> Group<T> createMultiGroup(String path, Class<T> clazz)
- Specified by:
createMultiGroupin interfaceGroupFactory
-
createMultiGroup
public <T extends NodeState> Group<T> createMultiGroup(String path, Class<T> clazz, ThreadFactory threadFactory)
- Specified by:
createMultiGroupin interfaceGroupFactory
-
close
public void close()
- Specified by:
closein interfaceManagedGroupFactory
-
-