public abstract class CallbackSupport extends Object
| Modifier and Type | Field and Description |
|---|---|
protected Clock |
clock |
protected ProxyConfig |
proxyConfig |
| Constructor and Description |
|---|
CallbackSupport(ProxyConfig proxyConfig) |
| Modifier and Type | Method and Description |
|---|---|
protected reactor.core.publisher.Flux<? extends io.r2dbc.spi.Result> |
interceptQueryExecution(org.reactivestreams.Publisher<? extends io.r2dbc.spi.Result> flux,
ProxyExecutionListener listener,
QueryExecutionInfo executionInfo)
Augment query execution result to hook up listener lifecycle.
|
protected Object |
proceedExecution(Method method,
Object target,
Object[] args,
ProxyExecutionListener listener,
ConnectionInfo connectionInfo,
BiFunction<Object,MethodExecutionInfo,Object> onMap,
Consumer<MethodExecutionInfo> onComplete)
Augment method invocation and call method listener.
|
void |
setClock(Clock clock) |
protected Clock clock
protected ProxyConfig proxyConfig
public CallbackSupport(ProxyConfig proxyConfig)
protected Object proceedExecution(Method method, Object target, Object[] args, ProxyExecutionListener listener, ConnectionInfo connectionInfo, BiFunction<Object,MethodExecutionInfo,Object> onMap, Consumer<MethodExecutionInfo> onComplete) throws Throwable
method - method to invoke on targettarget - an object being invokedargs - arguments for the methodlistener - listener that before/aftre method callbacks will be calledconnectionInfo - current connection informationonMap - a callback that will be chained on "map()" right after the result of the method invocationonComplete - a callback that will be chained as the first doOnComplete on the result of the method invocationThrowableprotected reactor.core.publisher.Flux<? extends io.r2dbc.spi.Result> interceptQueryExecution(org.reactivestreams.Publisher<? extends io.r2dbc.spi.Result> flux,
ProxyExecutionListener listener,
QueryExecutionInfo executionInfo)
public void setClock(Clock clock)
Copyright © 2018. All rights reserved.