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 AutoCloseable
close
in interface Closeable
IOException
- it never throws IOException.FsVolumeSpi getVolume()
Copyright © 2017 Apache Software Foundation. All Rights Reserved.