Class ReleasableBytesReference

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

public final class ReleasableBytesReference extends Object implements RefCounted, 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.