Example usage for org.springframework.integration.amqp.outbound AmqpOutboundEndpoint setExpectReply

List of usage examples for org.springframework.integration.amqp.outbound AmqpOutboundEndpoint setExpectReply

Introduction

In this page you can find the example usage for org.springframework.integration.amqp.outbound AmqpOutboundEndpoint setExpectReply.

Prototype

public void setExpectReply(boolean expectReply) 

Source Link

Usage

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

@Bean
@ServiceActivator(inputChannel = "outboundRequests")
public AmqpOutboundEndpoint amqpOutboundEndpoint(AmqpTemplate template) {
    AmqpOutboundEndpoint endpoint = new AmqpOutboundEndpoint(template);

    endpoint.setExpectReply(true);
    endpoint.setOutputChannel(inboundRequests());

    endpoint.setRoutingKey("partition.requests");

    return endpoint;
}