public class ChildReaper extends Object implements Closeable
Reaper| Constructor and Description |
|---|
ChildReaper(CuratorFramework client,
String path,
Reaper.Mode mode) |
ChildReaper(CuratorFramework client,
String path,
Reaper.Mode mode,
int reapingThresholdMs) |
ChildReaper(CuratorFramework client,
String path,
Reaper.Mode mode,
ScheduledExecutorService executor,
int reapingThresholdMs) |
public ChildReaper(CuratorFramework client, String path, Reaper.Mode mode)
client - the clientpath - path to reap children frommode - reaping modepublic ChildReaper(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(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.