Class BasicRecycler<R extends RecyclableInterface<R,​P>,​P extends RecyclerRequestInterface>

  • Type Parameters:
    R - Recyclable type
    P - Request type (P stands for request Parameter)
    All Implemented Interfaces:
    RecyclerInterface<R,​P>, Freeable

    public class BasicRecycler<R extends RecyclableInterface<R,​P>,​P extends RecyclerRequestInterface>
    extends FreeableBase
    implements RecyclerInterface<R,​P>, Freeable
    Basic Recycler. The basic recycler uses a single queue to hold recycled objects. When a request cannot be satisfied by any recycled objects, then these objects are released and new objects are created according to the request.
    Author:
    royer