Class FileSystemRef

  • All Implemented Interfaces:, java.lang.AutoCloseable

    public class FileSystemRef
    extends java.lang.Object
    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
      • isClosed

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

        boolean true if this ref was closed.
      • finalize

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