public class RedisChannelRegistry extends ChannelRegistrySupport implements org.springframework.beans.factory.DisposableBean
ChannelRegistry
implementation backed by Redis.ORIGINAL_CONTENT_TYPE_HEADER, XD_JSON_OCTET_STREAM_VALUE, XD_OCTET_STREAM_VALUE, XD_TEXT_PLAIN_UTF8_VALUE
Constructor and Description |
---|
RedisChannelRegistry(org.springframework.data.redis.connection.RedisConnectionFactory connectionFactory) |
Modifier and Type | Method and Description |
---|---|
void |
createInbound(java.lang.String name,
org.springframework.integration.MessageChannel moduleInputChannel,
java.util.Collection<org.springframework.http.MediaType> acceptedMediaTypes,
boolean aliasHint)
Register a message consumer.
|
void |
createOutbound(java.lang.String name,
org.springframework.integration.MessageChannel moduleOutputChannel,
boolean aliasHint)
Register a message producer.
|
void |
deleteInbound(java.lang.String name)
Remove an inbound inter-module channel and stop any active components that use the
channel.
|
void |
deleteOutbound(java.lang.String name)
Remove an outbound inter-module channel and stop any active components that use the
channel.
|
void |
destroy() |
void |
tap(java.lang.String tapModule,
java.lang.String name,
org.springframework.integration.MessageChannel tapModuleInputChannel)
Create a tap on an already registered inbound channel.
|
setBeanClassLoader, setConversionService, transformInboundIfNecessary, transformOutboundIfNecessary
public RedisChannelRegistry(org.springframework.data.redis.connection.RedisConnectionFactory connectionFactory)
public void createInbound(java.lang.String name, org.springframework.integration.MessageChannel moduleInputChannel, java.util.Collection<org.springframework.http.MediaType> acceptedMediaTypes, boolean aliasHint)
ChannelRegistry
createInbound
in interface ChannelRegistry
name
- the logical identity of the message sourcemoduleInputChannel
- the channel bound as a consumeracceptedMediaTypes
- the media types supported by the channelaliasHint
- whether the provided name represents an alias and thus should support late bindingpublic void createOutbound(java.lang.String name, org.springframework.integration.MessageChannel moduleOutputChannel, boolean aliasHint)
ChannelRegistry
createOutbound
in interface ChannelRegistry
name
- the logical identity of the message targetmoduleOutputChannel
- the channel bound as a produceraliasHint
- whether the provided name represents an alias and thus should support late bindingpublic void tap(java.lang.String tapModule, java.lang.String name, org.springframework.integration.MessageChannel tapModuleInputChannel)
ChannelRegistry
tap
in interface ChannelRegistry
tapModule
- the name of the tap modulename
- the registered nametapModuleInputChannel
- the channel that will receive messages from the tappublic void deleteInbound(java.lang.String name)
ChannelRegistry
deleteInbound
in interface ChannelRegistry
name
- the channel namepublic void deleteOutbound(java.lang.String name)
ChannelRegistry
deleteOutbound
in interface ChannelRegistry
name
- the channel namepublic void destroy()
destroy
in interface org.springframework.beans.factory.DisposableBean