Class ReleasableBytesReference

java.lang.Object
org.elasticsearch.common.bytes.ReleasableBytesReference
All Implemented Interfaces:
java.io.Closeable, java.lang.AutoCloseable, java.lang.Comparable<BytesReference>, BytesReference, Releasable, ToXContent, ToXContentFragment

public final class ReleasableBytesReference
extends java.lang.Object
implements Releasable, BytesReference
An extension to BytesReference that requires releasing its content. This class exists to make it explicit when a bytes reference needs to be released, and when not.