Example usage for org.springframework.integration.redis.inbound RedisInboundChannelAdapter setComponentName

List of usage examples for org.springframework.integration.redis.inbound RedisInboundChannelAdapter setComponentName

Introduction

In this page you can find the example usage for org.springframework.integration.redis.inbound RedisInboundChannelAdapter setComponentName.

Prototype

public void setComponentName(String componentName) 

Source Link

Document

Sets the name of this component.

Usage

From source file:org.springframework.integration.x.redis.RedisChannelRegistry.java

@Override
public void tap(String tapModule, final String name, MessageChannel channel) {
    RedisInboundChannelAdapter adapter = new RedisInboundChannelAdapter(
            this.redisTemplate.getConnectionFactory());
    adapter.setTopics("topic." + name);
    adapter.setOutputChannel(channel);/*from w  w w .j  a v  a 2s  . co m*/
    adapter.setBeanName("tap." + name);
    adapter.setComponentName(tapModule + "." + "tapAdapter");
    adapter.afterPropertiesSet();
    this.lifecycleBeans.add(adapter);
    adapter.start();
}