org.elasticsearch.util.io.stream
Class BytesStreamOutput.Cached

java.lang.Object
  extended by org.elasticsearch.util.io.stream.BytesStreamOutput.Cached
Enclosing class:
BytesStreamOutput

public static class BytesStreamOutput.Cached
extends java.lang.Object

A thread local based cache of BytesStreamOutput.


Constructor Summary
BytesStreamOutput.Cached()
           
 
Method Summary
static BytesStreamOutput cached()
          Returns the cached thread local byte stream, with its internal stream cleared.
static HandlesStreamOutput cachedHandles()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BytesStreamOutput.Cached

public BytesStreamOutput.Cached()
Method Detail

cached

public static BytesStreamOutput cached()
Returns the cached thread local byte stream, with its internal stream cleared.


cachedHandles

public static HandlesStreamOutput cachedHandles()
                                         throws java.io.IOException
Throws:
java.io.IOException