public interface ClientPool<C,E extends Exception>
| Modifier and Type | Interface and Description |
|---|---|
static interface |
ClientPool.Action<R,C,E extends Exception>
Action interface with return object for client.
|
static class |
ClientPool.ClientPoolImpl<C,E extends Exception>
Default implementation for
ClientPool. |
static interface |
ClientPool.ExecuteAction<C,E extends Exception>
Action interface with return void for client.
|
| Modifier and Type | Method and Description |
|---|---|
void |
execute(ClientPool.ExecuteAction<C,E> action) |
void |
execute(ClientPool.ExecuteAction<C,E> action,
boolean retry) |
<R> R |
run(ClientPool.Action<R,C,E> action) |
<R> R |
run(ClientPool.Action<R,C,E> action,
boolean retry) |
<R> R run(ClientPool.Action<R,C,E> action) throws E extends Exception, InterruptedException
E extends ExceptionInterruptedException<R> R run(ClientPool.Action<R,C,E> action, boolean retry) throws E extends Exception, InterruptedException
E extends ExceptionInterruptedExceptionvoid execute(ClientPool.ExecuteAction<C,E> action) throws E extends Exception, InterruptedException
E extends ExceptionInterruptedExceptionvoid execute(ClientPool.ExecuteAction<C,E> action, boolean retry) throws E extends Exception, InterruptedException
E extends ExceptionInterruptedExceptionCopyright © 2023–2024 The Apache Software Foundation. All rights reserved.