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 class
TreeCache.Builder
static class
TreeCache.TreeCacheEvent
static interface
TreeCache.TreeCacheListener
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addListener(TreeCache.TreeCacheListener listener)
void
close()
static TreeCache.Builder
newBuilder(CuratorFrameworkShim curator, java.lang.String path)
void
start()
-
-
-
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:
close
in interfacejava.lang.AutoCloseable
- Specified by:
close
in interfacejava.io.Closeable
- Throws:
java.io.IOException
-
-