public class RedisChannelRegistry extends java.lang.Object implements ChannelRegistry, org.springframework.beans.factory.DisposableBean
ChannelRegistry
implementation backed by Redis.Constructor and Description |
---|
RedisChannelRegistry(org.springframework.data.redis.connection.RedisConnectionFactory connectionFactory) |
Modifier and Type | Method and Description |
---|---|
void |
cleanAll(java.lang.String name)
Remove all subscriptions to inter-module channels for this module
and stop any active components that use those channels.
|
void |
destroy() |
void |
inbound(java.lang.String name,
org.springframework.integration.MessageChannel channel)
Register a message consumer
|
void |
outbound(java.lang.String name,
org.springframework.integration.MessageChannel channel)
Register a message producer
|
void |
tap(java.lang.String tapModule,
java.lang.String name,
org.springframework.integration.MessageChannel channel)
Create a tap on an already registered inbound channel
|
public RedisChannelRegistry(org.springframework.data.redis.connection.RedisConnectionFactory connectionFactory)
public void inbound(java.lang.String name, org.springframework.integration.MessageChannel channel)
ChannelRegistry
inbound
in interface ChannelRegistry
name
- the logical identity of the message sourcechannel
- the channel bound as a consumerpublic void outbound(java.lang.String name, org.springframework.integration.MessageChannel channel)
ChannelRegistry
outbound
in interface ChannelRegistry
name
- the logical identity of the message targetchannel
- the channel bound as a producerpublic void tap(java.lang.String tapModule, java.lang.String name, org.springframework.integration.MessageChannel channel)
ChannelRegistry
tap
in interface ChannelRegistry
tapModule
- the name of the tap modulename
- the registered namechannel
- the channel that will receive messages from the tappublic void cleanAll(java.lang.String name)
ChannelRegistry
cleanAll
in interface ChannelRegistry
name
- the module namepublic void destroy()
destroy
in interface org.springframework.beans.factory.DisposableBean