Constructor and Description |
---|
Template(RecyclingSupplier<T> pool,
RetryPolicy<R,Callable<? extends R>> retryPolicy,
Class<E> exClass) |
Modifier and Type | Method and Description |
---|---|
R |
doOnSupplied(HandlerNano<T,R,E> handler,
long timeout,
TimeUnit tu) |
static <T,R,E extends Exception> |
doOnSupplied(HandlerNano<T,R,E> handler,
long timeout,
TimeUnit tu,
RecyclingSupplier<T> pool,
RetryPolicy<R,Callable<? extends R>> retryPolicy,
Class<E> exClass) |
String |
toString() |
public Template(RecyclingSupplier<T> pool, RetryPolicy<R,Callable<? extends R>> retryPolicy, Class<E> exClass)
public R doOnSupplied(HandlerNano<T,R,E> handler, long timeout, TimeUnit tu) throws InterruptedException, E extends Exception, TimeoutException
InterruptedException
E extends Exception
TimeoutException
public static <T,R,E extends Exception> R doOnSupplied(HandlerNano<T,R,E> handler, long timeout, TimeUnit tu, RecyclingSupplier<T> pool, RetryPolicy<R,Callable<? extends R>> retryPolicy, Class<E> exClass) throws E extends Exception, InterruptedException, TimeoutException
E extends Exception
InterruptedException
TimeoutException
Copyright © 2018 SPF4J. All rights reserved.