public class ChildReaper extends Object implements Closeable
Reaper| Constructor and Description |
|---|
ChildReaper(org.apache.curator.framework.CuratorFramework client,
String path,
Reaper.Mode mode) |
ChildReaper(org.apache.curator.framework.CuratorFramework client,
String path,
Reaper.Mode mode,
int reapingThresholdMs) |
ChildReaper(org.apache.curator.framework.CuratorFramework client,
String path,
Reaper.Mode mode,
ScheduledExecutorService executor,
int reapingThresholdMs) |
public ChildReaper(org.apache.curator.framework.CuratorFramework client,
String path,
Reaper.Mode mode)
client - the clientpath - path to reap children frommode - reaping modepublic ChildReaper(org.apache.curator.framework.CuratorFramework client,
String path,
Reaper.Mode mode,
int reapingThresholdMs)
client - the clientpath - path to reap children fromreapingThresholdMs - threshold in milliseconds that determines that a path can be deletedmode - reaping modepublic ChildReaper(org.apache.curator.framework.CuratorFramework client,
String path,
Reaper.Mode mode,
ScheduledExecutorService executor,
int reapingThresholdMs)
client - the clientpath - path to reap children fromexecutor - executor to use for background tasksreapingThresholdMs - threshold in milliseconds that determines that a path can be deletedmode - reaping modepublic void close()
throws IOException
close in interface Closeableclose in interface AutoCloseableIOExceptionCopyright © 2011-2014 The Apache Software Foundation. All Rights Reserved.