public final class ReflectionBasedByteBufferCleanerService extends Object implements ByteBufferCleanerService
ByteBufferCleanerService.Impact| Constructor and Description |
|---|
ReflectionBasedByteBufferCleanerService() |
| Modifier and Type | Method and Description |
|---|---|
void |
clean(ByteBuffer buffer)
Performs cleaning operation on the specified ByteBuffer.
|
ByteBufferCleanerService.Impact |
impact()
Indicates the impact level of cleaning operation.
|
public ReflectionBasedByteBufferCleanerService()
public void clean(ByteBuffer buffer)
ByteBufferCleanerServiceIf the buffer is a direct ByteBuffer, this operation is expected to release
any memory resources associated with it. Depending on the implementation, this method
may have side effects or performance impacts, which can be queried via the ByteBufferCleanerService.impact() method.
clean in interface ByteBufferCleanerServicebuffer - the ByteBuffer to clean.public ByteBufferCleanerService.Impact impact()
ByteBufferCleanerServiceimpact in interface ByteBufferCleanerServiceByteBufferCleanerService.Impact of the cleaning operation on performance or resource availability.Copyright © 2023. All rights reserved.