Skip navigation links

Package net.openhft.chronicle.core.io

The resource management package provides classes and interfaces for managing the lifecycle of resources such as files, streams, and memory buffers.

See: Description

Package net.openhft.chronicle.core.io Description

The resource management package provides classes and interfaces for managing the lifecycle of resources such as files, streams, and memory buffers. It includes abstractions for reference counting, closing resources, and utilities for background resource release.

Features

Key Classes and Interfaces

Custom Exceptions

Use Cases

This package can be used in scenarios where there is a need to manage the lifecycle of resources, especially those requiring closing operations. Examples include:

Examples


 try (CloseableResource resource = new CloseableResource()) {
     // use the resource
 } catch (IORuntimeException e) {
     // handle exception
 }
 
See Also:
Closeable, ManagedCloseable
Skip navigation links

Copyright © 2024. All rights reserved.