public class EventualCleanupService extends Object implements CleanupService
| Constructor and Description |
|---|
EventualCleanupService(int threadCount,
int queueSize) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
await(long timeout,
TimeUnit timeUnit) |
boolean |
deleteRecursive(org.apache.hadoop.fs.Path path,
org.apache.hadoop.fs.FileSystem fileSystem) |
void |
shutdown() |
void |
shutdownNow() |
void |
start() |
public EventualCleanupService(int threadCount,
int queueSize)
public void start()
start in interface CleanupServicepublic boolean deleteRecursive(org.apache.hadoop.fs.Path path,
org.apache.hadoop.fs.FileSystem fileSystem)
deleteRecursive in interface CleanupServicepublic void shutdown()
shutdown in interface CleanupServicepublic void shutdownNow()
shutdownNow in interface CleanupServicepublic boolean await(long timeout,
TimeUnit timeUnit)
throws InterruptedException
InterruptedExceptionCopyright © 2024 The Apache Software Foundation. All rights reserved.