Class FileSystemRef

  • All Implemented Interfaces:
    java.io.Closeable, java.lang.AutoCloseable

    public class FileSystemRef
    extends java.lang.Object
    implements java.io.Closeable
    A handle to a GFileSystem which allows tracking the current users of the filesystem.

    Instances must be closed when not needed anymore, and should not be shared across threads.

    • Method Detail

      • close

        public void close()
        Closes this reference, releasing it from the FileSystemRefManager.
        Specified by:
        close in interface java.lang.AutoCloseable
        Specified by:
        close in interface java.io.Closeable
      • isClosed

        public boolean isClosed()
        Returns true if this ref was closed.

        Returns:
        boolean true if this ref was closed.
      • finalize

        public void finalize()
        Overrides:
        finalize in class java.lang.Object