Example usage for org.springframework.integration.amqp.inbound AmqpInboundGateway AmqpInboundGateway

List of usage examples for org.springframework.integration.amqp.inbound AmqpInboundGateway AmqpInboundGateway

Introduction

In this page you can find the example usage for org.springframework.integration.amqp.inbound AmqpInboundGateway AmqpInboundGateway.

Prototype

public AmqpInboundGateway(AbstractMessageListenerContainer listenerContainer) 

Source Link

Usage

From source file:io.spring.batch.configuration.JobConfiguration.java

@Bean
public AmqpInboundGateway inbound(SimpleMessageListenerContainer listenerContainer) {
    AmqpInboundGateway gateway = new AmqpInboundGateway(listenerContainer);

    gateway.setRequestChannel(inboundRequests());
    gateway.setRequestTimeout(60000000l);

    gateway.afterPropertiesSet();/*from   w w w . java 2  s . com*/

    return gateway;
}