public class GatewayCompletableFutureProxyFactoryBean extends GatewayProxyFactoryBean
CompletableFutures. If a
gateway method returns CompletableFuture exactly, one will be returned and the
results of the
CompletableFuture.supplyAsync(Supplier, java.util.concurrent.Executor) method
call will be returned.
If you wish your integration flow to return a CompletableFuture to the gateway
in a reply message, the async executor must be set to null.
If the return type is a subclass of CompletableFuture,
it must be returned by the integration flow and the async executor (if present) is not
used.
lifecycleCondition, lifecycleLocklogger| Constructor and Description |
|---|
GatewayCompletableFutureProxyFactoryBean() |
GatewayCompletableFutureProxyFactoryBean(Class<?> serviceInterface) |
| Modifier and Type | Method and Description |
|---|---|
Object |
invoke(org.aopalliance.intercept.MethodInvocation invocation) |
doInvoke, doStart, doStop, getAsyncExecutor, getObject, getObjectType, isSingleton, onInit, setAsyncExecutor, setBeanClassLoader, setDefaultReplyChannel, setDefaultReplyTimeout, setDefaultRequestChannel, setDefaultRequestTimeout, setErrorChannel, setGlobalMethodMetadata, setMapper, setMethodMetadataMap, setReactorEnvironment, setServiceInterface, setShouldTrack, setTypeConverterdoStop, getPhase, isAutoStartup, isRunning, setAutoStartup, setPhase, setTaskScheduler, start, stop, stopafterPropertiesSet, extractTypeIfPossible, getApplicationContext, getApplicationContextId, getBeanFactory, getChannelResolver, getComponentName, getComponentType, getConversionService, getIntegrationProperties, getIntegrationProperty, getMessageBuilderFactory, getTaskScheduler, setApplicationContext, setBeanFactory, setBeanName, setChannelResolver, setComponentName, setConversionService, setMessageBuilderFactory, toStringclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetComponentName, getComponentTypepublic GatewayCompletableFutureProxyFactoryBean()
public GatewayCompletableFutureProxyFactoryBean(Class<?> serviceInterface)
public Object invoke(org.aopalliance.intercept.MethodInvocation invocation) throws Throwable
invoke in interface org.aopalliance.intercept.MethodInterceptorinvoke in class GatewayProxyFactoryBeanThrowable