Interface SharedCloseable
- All Superinterfaces:
AutoCloseable
- All Known Subinterfaces:
IFilter
- All Known Implementing Classes:
BloomFilter,ChannelProxy,CompressionMetadata,FileHandle,IndexSummary,MmappedRegions,PartitionIndex,SafeMemory,SharedCloseableImpl,SSTableContext,WrappedSharedCloseable
A simple extension of AutoCloseable, that represents a resource that can be utilised in multiple locations,
each managing their own closure of the resource, so that when the last such instance is closed all are.
-
Method Summary
Modifier and TypeMethodDescriptionvoidaddTo(Ref.IdentityCollection identities) static <T extends SharedCloseable>
TsharedCopyOrNull(T sharedCloseable) Methods inherited from interface java.lang.AutoCloseable
close
-
Method Details
-
close
-
addTo