Package org.apache.cassandra.io.util
Class SafeMemory
java.lang.Object
org.apache.cassandra.io.util.Memory
org.apache.cassandra.io.util.SafeMemory
- All Implemented Interfaces:
AutoCloseable,ReadableMemory,SharedCloseable
-
Field Summary
Fields inherited from class org.apache.cassandra.io.util.Memory
NO_BYTE_BUFFERS, peer, size -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddTo(Ref.IdentityCollection identities) protected voidcheckBounds(long start, long end) voidclose()copy(long newSize) voidfree()
-
Constructor Details
-
SafeMemory
public SafeMemory(long size)
-
-
Method Details
-
free
public void free() -
close
public void close()- Specified by:
closein interfaceAutoCloseable- Overrides:
closein classMemory
-
close
- Specified by:
closein interfaceSharedCloseable
-
copy
-
checkBounds
@Inline protected void checkBounds(long start, long end) - Overrides:
checkBoundsin classMemory
-
addTo
- Specified by:
addToin interfaceSharedCloseable