T
- public class ExecutorProxyFactory<T> extends DelegatingProxyFactory<T>
Constructor and Description |
---|
ExecutorProxyFactory(T delegate)
Constructor.
|
ExecutorProxyFactory(T delegate,
Executor executor)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
Executor |
getExecutor()
Returns used executor.
|
protected Object |
invoke(DelegatingMethodInvocation<T> delegatingMethodInvocation)
Method to override in child classes.
|
void |
setExecutor(Executor executor)
Sets used executor.
|
getDelegate, invoke, newProxy, newProxy, newProxy
public ExecutorProxyFactory(T delegate)
delegate
- Delegate objectpublic ExecutorProxyFactory(T delegate, Executor executor)
delegate
- Delegate objectexecutor
- Executor used, see Executors
public Executor getExecutor()
public void setExecutor(Executor executor)
executor
- Executorprotected Object invoke(DelegatingMethodInvocation<T> delegatingMethodInvocation) throws Throwable
DelegatingProxyFactory
invoke
in class DelegatingProxyFactory<T>
delegatingMethodInvocation
- Method invocation (arguments, method name, etc.)Throwable
- Method invocation raised exceptionCopyright © 2019. All rights reserved.