public final class ByteArrayPool extends Object
byte arrays and caches them, reusing them once they have been released.
The maximum number of byte arrays is unbounded
The default time-to-live for unused byte arrays is one minute
| Modifier and Type | Method and Description |
|---|---|
static void |
withByteArray(Consumer<byte[]> consumer)
Executes a
Consumer providing a pooled byte array |
Copyright © 2019. All rights reserved.