Uses of Interface
org.apache.cassandra.utils.concurrent.RefCounted
-
-
Uses of RefCounted in org.apache.cassandra.io.sstable.format
Classes in org.apache.cassandra.io.sstable.format that implement RefCounted Modifier and Type Class Description class
SSTableReader
An SSTableReader can be constructed in a number of places, but typically is either read from disk at startup, or constructed from a flushed memtable, or after compaction to replace some existing sstables.class
SSTableReaderWithFilter
-
Uses of RefCounted in org.apache.cassandra.io.sstable.format.big
Classes in org.apache.cassandra.io.sstable.format.big that implement RefCounted Modifier and Type Class Description class
BigTableReader
SSTableReaders are open()ed by Keyspace.onStart; after that they are created by SSTableWriter.renameAndOpen. -
Uses of RefCounted in org.apache.cassandra.io.sstable.format.bti
Classes in org.apache.cassandra.io.sstable.format.bti that implement RefCounted Modifier and Type Class Description class
BtiTableReader
Reader of SSTable files in BTI format (seeBtiFormat
), written byBtiTableWriter
. -
Uses of RefCounted in org.apache.cassandra.utils.concurrent
Classes in org.apache.cassandra.utils.concurrent with type parameters of type RefCounted Modifier and Type Class Description class
Refs<T extends RefCounted<T>>
A collection of managed Ref references to RefCounted objects, and the objects they are referencing.Subinterfaces of RefCounted in org.apache.cassandra.utils.concurrent Modifier and Type Interface Description interface
SelfRefCounted<T extends SelfRefCounted<T>>
Classes in org.apache.cassandra.utils.concurrent that implement RefCounted Modifier and Type Class Description class
Ref<T>
An object that needs ref counting does the two following: - defines a Tidy object that will cleanup once it's gone, (this must retain no references to the object we're tracking (only its resources and how to clean up)) Then, one of two options: 1) Construct a Ref directly pointing to it, and always use this Ref; or 2) - implements RefCounted - encapsulates a Ref, we'll call selfRef, to which it proxies all calls to RefCounted behaviours - users must ensure no references to the selfRef leak, or are retained outside of a method scope.static class
Ref.DirectBufferRef<T extends sun.nio.ch.DirectBuffer>
A version ofRef
for objects that implementDirectBuffer
.Methods in org.apache.cassandra.utils.concurrent with type parameters of type RefCounted Modifier and Type Method Description static <T extends RefCounted<T>>
Refs<T>Refs. ref(java.lang.Iterable<? extends T> reference)
static <T extends RefCounted<T>>
Refs<T>Refs. tryRef(java.lang.Iterable<? extends T> reference)
Acquire a reference to all of the provided objects, or none
-