Package org.elasticsearch.core
Class ReleasableRef<T extends org.elasticsearch.core.RefCounted>
java.lang.Object
org.elasticsearch.core.ReleasableRef<T>
- All Implemented Interfaces:
Closeable
,AutoCloseable
,org.elasticsearch.core.Releasable
public final class ReleasableRef<T extends org.elasticsearch.core.RefCounted>
extends Object
implements org.elasticsearch.core.Releasable
Adapter to use a
RefCounted
in a try-with-resources block.-
Method Summary