public interface NonValidatingRecyclingSupplier<T>
Modifier and Type | Method and Description |
---|---|
T |
get()
block until a object is available and return it.
|
void |
recycle(T object)
recycle object.
|
@Nonnull T get() throws ObjectCreationException, ObjectBorrowException, InterruptedException, TimeoutException
ObjectCreationException
- - cannot create an object.ObjectBorrowException
- - cannot borrow an object.InterruptedException
- - interrupted.TimeoutException
- - timed out while getting object.void recycle(T object)
object
- - object to recycle.Copyright © 2018 SPF4J. All rights reserved.