public final class RecyclingSupplierBuilder<T> extends Object
Modifier and Type | Class and Description |
---|---|
static class |
RecyclingSupplierBuilder.AbstractRunnableImpl<T> |
Constructor and Description |
---|
RecyclingSupplierBuilder(int maxSize,
RecyclingSupplier.Factory<T> factory) |
Modifier and Type | Method and Description |
---|---|
RecyclingSupplier<T> |
build() |
RecyclingSupplierBuilder<T> |
unfair() |
RecyclingSupplierBuilder<T> |
withGetHook(Handler<T,? extends Exception> phook) |
RecyclingSupplierBuilder<T> |
withInitialSize(int pinitialSize) |
RecyclingSupplierBuilder<T> |
withMaintenance(ScheduledExecutorService pexec,
long pmaintenanceIntervalMillis,
boolean pcollectBorrowed) |
RecyclingSupplierBuilder<T> |
withOperationTimeout(long ptimeoutMillis) |
RecyclingSupplierBuilder<T> |
withRecycleHook(Handler<T,? extends Exception> phook) |
public RecyclingSupplierBuilder(int maxSize, RecyclingSupplier.Factory<T> factory)
public RecyclingSupplierBuilder<T> unfair()
public RecyclingSupplierBuilder<T> withInitialSize(int pinitialSize)
public RecyclingSupplierBuilder<T> withOperationTimeout(long ptimeoutMillis)
public RecyclingSupplierBuilder<T> withMaintenance(ScheduledExecutorService pexec, long pmaintenanceIntervalMillis, boolean pcollectBorrowed)
public RecyclingSupplierBuilder<T> withGetHook(Handler<T,? extends Exception> phook)
public RecyclingSupplierBuilder<T> withRecycleHook(Handler<T,? extends Exception> phook)
public RecyclingSupplier<T> build() throws ObjectCreationException
ObjectCreationException
Copyright © 2014. All rights reserved.