int: эквивалент шлюза Java DSL

Что такое эквивалент Java DSL для int:gateway, который имеет канал ошибок и канал запроса по умолчанию. Канал запроса по умолчанию является входом для преобразователя, который отправляет сообщение JMS на исходящий адаптер и возвращает ожидаемое будущее.


person Nandha0903    schedule 13.08.2018    source источник


Ответы (1)


Что-то вроде этого:

return IntegrationFlows.from(Gate.class)

/**
 * Populate the {@link MessageChannel} to the new {@link IntegrationFlowBuilder}
 * chain, which becomes as a {@code requestChannel} for the Messaging Gateway(s) built
 * on the provided service interface.
 * <p>A gateway proxy bean for provided service interface is registered under a name
 * from the
 * {@link org.springframework.integration.annotation.MessagingGateway#name()} if present
 * or from the {@link IntegrationFlow} bean name plus {@code .gateway} suffix.
 * @param serviceInterface the service interface class with an optional
 * {@link org.springframework.integration.annotation.MessagingGateway} annotation.
 * @return new {@link IntegrationFlowBuilder}.
 */
public static IntegrationFlowBuilder from(Class<?> serviceInterface) {

https://docs.spring.io/spring-integration/docs/current/reference/html/java-dsl.html#java-dsl-gateway

person Artem Bilan    schedule 13.08.2018