企业集成模式(4)---Spring Integration Components

Spring integration building  blocks 解释,基本上是从原文摘录的,懒得翻译了 :)

Message

A message is a generic wrapper for any Java object combined with metadata used by Spring Integration to handle the object.


企业集成模式(4)---Spring Integration Components_第1张图片

Headers

String/Object Map that typically maintains values for message housekeeping chores

Payloads

The message payload can be any POJO

Message Channels

A message channel is the component through which messages are moved.

企业集成模式(4)---Spring Integration Components_第2张图片

Message Endpoints

A message endpoint is the abstraction layer between the application code and the messaging framework.

The main endpoint types supported by Spring Integration are as follows:

Transformer

Converts the message content or structure.


企业集成模式(4)---Spring Integration Components_第3张图片

Filter

Determines if the message should be passed to the message channel.


企业集成模式(4)---Spring Integration Components_第4张图片

Router

Can determine which channel to send a particular message based on its content.

企业集成模式(4)---Spring Integration Components_第5张图片

Splitter

Can break an incoming message into multiple messages and send them to the appropriate channel.

企业集成模式(4)---Spring Integration Components_第6张图片

Aggregator

Can combine multiple messages into one. An aggregator is more complex than a splitter often required to maintain state.

企业集成模式(4)---Spring Integration Components_第7张图片

Service activator

Is the interface between the message channel and a service instance, many times containing the application code for business logic.

企业集成模式(4)---Spring Integration Components_第8张图片

Channel adapter

Is used to connect the message channel to another system or transport.

企业集成模式(4)---Spring Integration Components_第9张图片

Gateway

A connection that specific to bidierectional messaging

企业集成模式(4)---Spring Integration Components_第10张图片

参考资料

企业集成模式(4)---Spring Integration Components_第11张图片
spring integration

你可能感兴趣的:(企业集成模式(4)---Spring Integration Components)