Example usage for org.springframework.integration.gateway GatewayProxyFactoryBean setServiceInterface

List of usage examples for org.springframework.integration.gateway GatewayProxyFactoryBean setServiceInterface

Introduction

In this page you can find the example usage for org.springframework.integration.gateway GatewayProxyFactoryBean setServiceInterface.

Prototype

public void setServiceInterface(Class<?> serviceInterface) 

Source Link

Document

Set the interface class that the generated proxy should implement.

Usage

From source file:com.acmemotors.batch.LoaderJobConfiguration.java

@Bean
public GatewayProxyFactoryBean gatewayProxyFactoryBean() {
    GatewayProxyFactoryBean gatewayProxyFactoryBean = new GatewayProxyFactoryBean();
    gatewayProxyFactoryBean.setServiceInterface(RequestGateway.class);
    gatewayProxyFactoryBean.setDefaultRequestChannel(requestChannel());
    gatewayProxyFactoryBean.setDefaultReplyTimeout(5000l);
    return gatewayProxyFactoryBean;
}