@InterfaceAudience.Private public class ThreadLocalEncoderPool extends Object implements EncoderPool
Constructor and Description |
---|
ThreadLocalEncoderPool() |
Modifier and Type | Method and Description |
---|---|
void |
checkIn(PrefixTreeEncoder encoder) |
PrefixTreeEncoder |
checkOut(OutputStream os,
boolean includeMvccVersion)
Get the encoder attached to the current ThreadLocal, or create a new one and attach it to the
current thread.
|
public PrefixTreeEncoder checkOut(OutputStream os, boolean includeMvccVersion)
checkOut
in interface EncoderPool
public void checkIn(PrefixTreeEncoder encoder)
checkIn
in interface EncoderPool
Copyright © 2014 The Apache Software Foundation. All Rights Reserved.