public class Utf8StringEncoderPool
extends java.lang.Object
Utf8StringEncoders that can be used for UTF8 encoding.| Modifier and Type | Method and Description |
|---|---|
static Utf8StringEncoderPool |
getInstance() |
T |
getOrCreate()
If the pool is not empty, removes an object from the pool and returns it;
otherwise, constructs a new object.
|
void |
returnToPool(T object)
Adds the provided instance to the pool.
|
public static Utf8StringEncoderPool getInstance()
Utf8StringEncoderPool.public T getOrCreate()
public void returnToPool(T object)
object - An object to add to the pool.