See: Description
| Class | Description |
|---|---|
| CleanerServiceLocator |
A utility class to locate the appropriate
ByteBufferCleanerService implementation. |
This package includes a CleanerServiceLocator
that locates an appropriate implementation of ByteBufferCleanerService
which can be used to clean DirectByteBuffers. This is especially useful for preventing memory leaks in
environments where direct memory is allocated outside of the Java heap.
The CleanerServiceLocator uses the Java ServiceLoader mechanism
to find implementations of ByteBufferCleanerService,
which is an interface that can be implemented to provide custom buffer cleaning strategies.
CleanerServiceLocator,
ByteBufferCleanerServiceCopyright © 2024. All rights reserved.