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 interface
Recycler.C<T>
static interface
Recycler.Factory<T>
static interface
Recycler.V<T>
-
Method Summary
Modifier and Type Method Description void
close()
Recycler.V<T>
obtain()
Recycler.V<T>
obtain(int sizing)
-
-
-
Method Detail
-
close
void close()
- Specified by:
close
in interfacejava.lang.AutoCloseable
- Specified by:
close
in interfacejava.io.Closeable
- Specified by:
close
in interfaceReleasable
-
obtain
Recycler.V<T> obtain()
-
obtain
Recycler.V<T> obtain(int sizing)
-
-