Class NoneRecycler<T>
- java.lang.Object
-
- org.elasticsearch.common.recycler.NoneRecycler<T>
-
- All Implemented Interfaces:
java.io.Closeable
,java.lang.AutoCloseable
,Releasable
,Recycler<T>
public class NoneRecycler<T> extends java.lang.Object
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
NoneRecycler.NV<T>
-
Nested classes/interfaces inherited from interface org.elasticsearch.common.recycler.Recycler
Recycler.C<T>, Recycler.Factory<T>, Recycler.V<T>
-
-
Field Summary
Fields Modifier and Type Field Description protected Recycler.C<T>
c
-
Constructor Summary
Constructors Constructor Description NoneRecycler(Recycler.C<T> c)
-
Method Summary
Modifier and Type Method Description void
close()
Recycler.V<T>
obtain()
Recycler.V<T>
obtain(int sizing)
-
-
-
Field Detail
-
c
protected final Recycler.C<T> c
-
-
Constructor Detail
-
NoneRecycler
public NoneRecycler(Recycler.C<T> c)
-
-
Method Detail
-
obtain
public Recycler.V<T> obtain(int sizing)
-
close
public void close()
- Specified by:
close
in interfacejava.lang.AutoCloseable
- Specified by:
close
in interfacejava.io.Closeable
- Specified by:
close
in interfaceRecycler<T>
- Specified by:
close
in interfaceReleasable
-
obtain
public Recycler.V<T> obtain()
-
-