public class Utf8StringDecoderPool
extends java.lang.Object
Utf8StringDecoders that can be used for UTF8 decoding.| Modifier and Type | Method and Description |
|---|---|
static Utf8StringDecoderPool |
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 Utf8StringDecoderPool getInstance()
Utf8StringDecoderPool.public T getOrCreate()
public void returnToPool(T object)
object - An object to add to the pool.