Package co.elastic.apm.agent.objectpool
Interface Resetter<T>
-
- Type Parameters:
T- pooled object type
- All Known Implementing Classes:
Resetter.ForRecyclable
public interface Resetter<T>Defines reset strategy to use for a given pooled object type when they are returned to pool
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static classResetter.ForRecyclable<T extends Recyclable>Resetter for objects that implementRecyclable
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidrecycle(T object)Recycles a pooled object state
-
-
-
Method Detail
-
recycle
void recycle(T object)
Recycles a pooled object state- Parameters:
object- object to recycle
-
-