Package org.apache.cassandra.utils
Class WithResources.None
java.lang.Object
org.apache.cassandra.utils.WithResources.None
- All Implemented Interfaces:
WithResources
- Enclosing interface:
- WithResources
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.apache.cassandra.utils.WithResources
WithResources.None -
Method Summary
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.apache.cassandra.utils.WithResources
and
-
Method Details
-
get
Description copied from interface:WithResourcesInstantiate any necessary resources- Specified by:
getin interfaceWithResources- Returns:
- an object that closes any instantiated resources
-
isNoOp
public boolean isNoOp()Description copied from interface:WithResourcesA convenience method to avoid unnecessary work.- Specified by:
isNoOpin interfaceWithResources- Returns:
- true iff this object performs no work when
WithResources.get()is invoked, nor whenCloseable.close()is invoked on the object it returns.
-