Class AbstractRecyclerC<T>
- java.lang.Object
-
- org.elasticsearch.common.recycler.AbstractRecyclerC<T>
-
- All Implemented Interfaces:
Recycler.C<T>
public abstract class AbstractRecyclerC<T> extends java.lang.Object implements Recycler.C<T>
-
-
Constructor Summary
Constructors Constructor Description AbstractRecyclerC()
-
-
-
Method Detail
-
newInstance
public abstract T newInstance(int sizing)
Description copied from interface:Recycler.C
Create a new empty instance of the given size.- Specified by:
newInstance
in interfaceRecycler.C<T>
-
recycle
public abstract void recycle(T value)
Description copied from interface:Recycler.C
Recycle the data. This operation is called when the data structure is released.- Specified by:
recycle
in interfaceRecycler.C<T>
-
destroy
public void destroy(T value)
Description copied from interface:Recycler.C
Destroy the data. This operation allows the data structure to release any internal resources before GC.- Specified by:
destroy
in interfaceRecycler.C<T>
-
-