Class WithResources.None

java.lang.Object
org.apache.cassandra.utils.WithResources.None
All Implemented Interfaces:
WithResources
Enclosing interface:
WithResources

public static class WithResources.None extends Object implements WithResources
  • Method Details

    • get

      public Closeable get()
      Description copied from interface: WithResources
      Instantiate any necessary resources
      Specified by:
      get in interface WithResources
      Returns:
      an object that closes any instantiated resources
    • isNoOp

      public boolean isNoOp()
      Description copied from interface: WithResources
      A convenience method to avoid unnecessary work.
      Specified by:
      isNoOp in interface WithResources
      Returns:
      true iff this object performs no work when WithResources.get() is invoked, nor when Closeable.close() is invoked on the object it returns.