Interface Recycler<T>
-
- All Superinterfaces:
java.lang.AutoCloseable,java.io.Closeable,Releasable
- All Known Implementing Classes:
ConcurrentDequeRecycler,DequeRecycler,NoneRecycler
public interface Recycler<T> extends Releasable
A recycled object, note, implementations should support calling obtain and then recycle on different threads.
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static interfaceRecycler.C<T>static interfaceRecycler.Factory<T>static interfaceRecycler.V<T>
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidclose()Recycler.V<T>obtain()Recycler.V<T>obtain(int sizing)
-
-
-
Method Detail
-
close
void close()
- Specified by:
closein interfacejava.lang.AutoCloseable- Specified by:
closein interfacejava.io.Closeable- Specified by:
closein interfaceReleasable
-
obtain
Recycler.V<T> obtain()
-
obtain
Recycler.V<T> obtain(int sizing)
-
-