public final class BytesPool extends Object
Bytes instances.
The ScopedResourcePool returned by createThreadLocal() manages the lifecycle of
Bytes objects per thread to minimise allocation overhead.
See pool-overview.adoc for tuning guidelines.
| Constructor and Description |
|---|
BytesPool() |
| Modifier and Type | Method and Description |
|---|---|
static net.openhft.chronicle.core.scoped.ScopedResourcePool<Bytes<?>> |
createThreadLocal()
Create a scoped-thread-local pool of bytes resources
|
static net.openhft.chronicle.core.scoped.ScopedResourcePool<Bytes<?>> |
createThreadLocal(int instancesPerThread)
Create a scoped-thread-local pool of bytes resources
|
public static net.openhft.chronicle.core.scoped.ScopedResourcePool<Bytes<?>> createThreadLocal()
public static net.openhft.chronicle.core.scoped.ScopedResourcePool<Bytes<?>> createThreadLocal(int instancesPerThread)
instancesPerThread - The maximum number of instances to retain per threadCopyright © 2026 Chronicle Software Ltd. All rights reserved.