Package com.attivio.curatorshim
Class TreeCache
- java.lang.Object
-
- com.attivio.curatorshim.TreeCache
-
- All Implemented Interfaces:
java.io.Closeable,java.lang.AutoCloseable
public final class TreeCache extends java.lang.Object implements java.io.Closeable
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classTreeCache.Builderstatic classTreeCache.TreeCacheEventstatic interfaceTreeCache.TreeCacheListener
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddListener(TreeCache.TreeCacheListener listener)voidclose()static TreeCache.BuildernewBuilder(CuratorFrameworkShim curator, java.lang.String path)voidstart()
-
-
-
Method Detail
-
newBuilder
public static TreeCache.Builder newBuilder(CuratorFrameworkShim curator, java.lang.String path)
-
start
public void start() throws java.lang.Exception- Throws:
java.lang.Exception
-
addListener
public void addListener(TreeCache.TreeCacheListener listener)
-
close
public void close() throws java.io.IOException- Specified by:
closein interfacejava.lang.AutoCloseable- Specified by:
closein interfacejava.io.Closeable- Throws:
java.io.IOException
-
-