Class NoneRecycler.NV<T>
java.lang.Object
org.elasticsearch.common.recycler.NoneRecycler.NV<T>
- All Implemented Interfaces:
java.io.Closeable
,java.lang.AutoCloseable
,org.elasticsearch.common.lease.Releasable
,Recycler.V<T>
- Enclosing class:
- NoneRecycler<T>
public static class NoneRecycler.NV<T> extends java.lang.Object implements Recycler.V<T>
-
Method Summary
Modifier and Type Method Description void
close()
boolean
isRecycled()
Whether this instance has been recycled (true) or newly allocated (false).T
v()
Reference to the value.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Method Details
-
v
Description copied from interface:Recycler.V
Reference to the value.- Specified by:
v
in interfaceRecycler.V<T>
-
isRecycled
public boolean isRecycled()Description copied from interface:Recycler.V
Whether this instance has been recycled (true) or newly allocated (false).- Specified by:
isRecycled
in interfaceRecycler.V<T>
-
close
public void close()- Specified by:
close
in interfacejava.lang.AutoCloseable
- Specified by:
close
in interfacejava.io.Closeable
- Specified by:
close
in interfaceorg.elasticsearch.common.lease.Releasable
-