Class SharedCloseableImpl
- java.lang.Object
-
- org.apache.cassandra.utils.concurrent.SharedCloseableImpl
-
- All Implemented Interfaces:
java.lang.AutoCloseable,SharedCloseable
- Direct Known Subclasses:
ChannelProxy,FileHandle,MmappedRegions,SSTableContext,WrappedSharedCloseable
public abstract class SharedCloseableImpl extends java.lang.Object implements SharedCloseable
A simple abstract implementation of SharedCloseable
-
-
Constructor Summary
Constructors Modifier Constructor Description SharedCloseableImpl(RefCounted.Tidy tidy)protectedSharedCloseableImpl(SharedCloseableImpl copy)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddTo(Ref.IdentityCollection identities)voidclose()java.lang.Throwableclose(java.lang.Throwable accumulate)booleanisCleanedUp()-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.apache.cassandra.utils.concurrent.SharedCloseable
sharedCopy
-
-
-
-
Constructor Detail
-
SharedCloseableImpl
public SharedCloseableImpl(RefCounted.Tidy tidy)
-
SharedCloseableImpl
protected SharedCloseableImpl(SharedCloseableImpl copy)
-
-
Method Detail
-
isCleanedUp
public boolean isCleanedUp()
-
close
public void close()
- Specified by:
closein interfacejava.lang.AutoCloseable
-
close
public java.lang.Throwable close(java.lang.Throwable accumulate)
- Specified by:
closein interfaceSharedCloseable
-
addTo
public void addTo(Ref.IdentityCollection identities)
- Specified by:
addToin interfaceSharedCloseable
-
-