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