public interface LeaseRecoverable
| Modifier and Type | Method | Description |
|---|---|---|
boolean |
isFileClosed(Path file) |
Get the close status of a file.
|
boolean |
recoverLease(Path file) |
Start the lease recovery of a file.
|
boolean recoverLease(Path file) throws java.io.IOException
file - path to a file.java.io.IOException - if an error occurs during lease recovery.java.lang.UnsupportedOperationException - if lease recovery is not supported by this filesystem.boolean isFileClosed(Path file) throws java.io.IOException
file - The string representation of the path to the filejava.io.IOException - If an I/O error occurredjava.lang.UnsupportedOperationException - if isFileClosed is not supported by this filesystem.Copyright © 2008–2025 Apache Software Foundation. All rights reserved.