public interface FsVolumeReference extends Closeable
close().
try (FsVolumeReference ref = volume.obtainReference()) {
// Do IOs on the volume
volume.createRwb(...);
...
}
| Modifier and Type | Method and Description |
|---|---|
void |
close()
Decrease the reference count of the volume.
|
FsVolumeSpi |
getVolume()
Returns the underlying volume object.
|
void close()
throws IOException
close in interface AutoCloseableclose in interface CloseableIOException - it never throws IOException.FsVolumeSpi getVolume()
Copyright © 2008–2023 Apache Software Foundation. All rights reserved.