public final class StringBuilderPool extends Object
| Constructor and Description |
|---|
StringBuilderPool() |
| Modifier and Type | Method and Description |
|---|---|
static ScopedResourcePool<StringBuilder> |
createThreadLocal()
Create a scoped-thread-local pool of StringBuilders
|
static ScopedResourcePool<StringBuilder> |
createThreadLocal(int instancesPerThread)
Create a scoped-thread-local pool of StringBuilders
|
public static ScopedResourcePool<StringBuilder> createThreadLocal()
public static ScopedResourcePool<StringBuilder> createThreadLocal(int instancesPerThread)
instancesPerThread - The maximum number of instances to retain for a threadCopyright © 2024. All rights reserved.