Skip navigation links

Package net.openhft.chronicle.core.cleaner

Provides utility classes and interfaces to efficiently manage the cleanup of byte buffers.

See: Description

Package net.openhft.chronicle.core.cleaner Description

Provides utility classes and interfaces to efficiently manage the cleanup of byte buffers.

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.

See Also:
CleanerServiceLocator, ByteBufferCleanerService
Skip navigation links

Copyright © 2024. All rights reserved.