Example usage for org.springframework.integration.endpoint EventDrivenConsumer setAutoStartup

List of usage examples for org.springframework.integration.endpoint EventDrivenConsumer setAutoStartup

Introduction

In this page you can find the example usage for org.springframework.integration.endpoint EventDrivenConsumer setAutoStartup.

Prototype

public void setAutoStartup(boolean autoStartup) 

Source Link

Usage

From source file:com.nayidisha.slowglow.config.SpringMessagingConfig.java

/**
 * Default endpoint//  w ww .  j ava  2s . c o m
 * 
 * @return
 */
@Bean(destroyMethod = "stop")
public EventDrivenConsumer eventDrivenConsumer() {
    EventDrivenConsumer consumer = new EventDrivenConsumer(webSocketInputChannel(), loggingHandler());
    consumer.setAutoStartup(true);

    return consumer;
}