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)
protected
SharedCloseableImpl(SharedCloseableImpl copy)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addTo(Ref.IdentityCollection identities)
void
close()
java.lang.Throwable
close(java.lang.Throwable accumulate)
boolean
isCleanedUp()
-
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:
close
in interfacejava.lang.AutoCloseable
-
close
public java.lang.Throwable close(java.lang.Throwable accumulate)
- Specified by:
close
in interfaceSharedCloseable
-
addTo
public void addTo(Ref.IdentityCollection identities)
- Specified by:
addTo
in interfaceSharedCloseable
-
-