You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/reference/antora/modules/ROOT/pages/claim-check.adoc
+5-5Lines changed: 5 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -7,7 +7,7 @@ However, there are times when we want to hide data temporarily.
7
7
For example, in a distributed system, we may receive a message with a very large payload.
8
8
Some intermittent message processing steps may not need access to this payload and some may only need to access certain headers, so carrying the large message payload through each processing step may cause performance degradation, may produce a security risk, and may make debugging more difficult.
9
9
10
-
The https://www.enterpriseintegrationpatterns.com/StoreInLibrary.html[store in library] (or claim check) pattern describes a mechanism that lets you store data in a wellknown place while maintaining only a pointer (a claim check) to where that data is located.
10
+
The https://www.enterpriseintegrationpatterns.com/StoreInLibrary.html[store in a library] (or claim check) pattern describes a mechanism that lets you store data in a well-known place while maintaining only a pointer (a claim check) to where that data is located.
11
11
You can pass that pointer around as the payload of a new message, thereby letting any component within the message flow get the actual data as soon as it needs it.
12
12
This approach is very similar to the certified mail process, where you get a claim check in your mailbox and then have to go to the post office to claim your actual package.
13
13
It is also the same idea as baggage claim after a flight or in a hotel.
@@ -38,7 +38,7 @@ That ID is the claim check for that message.
38
38
The claim check also becomes the payload of the new (transformed) message that is sent to the `output-channel`.
39
39
40
40
Now, assume that at some point you do need access to the actual message.
41
-
You can access the message store manually and get the contents of the message, or you can use the same approach (creating a transformer) except that now you transform the Claim Check to the actual message by using an outgoing claim check transformer.
41
+
You can access the message store manually and get the contents of the message, or you can use the same approach (to creating a transformer) except that now you transform the Claim Check to the actual message by using an outgoing claim check transformer.
42
42
43
43
The following listing provides an overview of all available parameters of an incoming claim check transformer:
44
44
@@ -139,7 +139,7 @@ Optional.
139
139
This attribute is not available inside a `Chain` element.
140
140
Optional.
141
141
<7> If set to `true`, the message is removed from the `MessageStore` by this transformer.
142
-
This setting is useful when Message can be "`claimed`" only once.
142
+
This setting is useful when a Message can be "`claimed`" only once.
143
143
It defaults to `false`.
144
144
Optional.
145
145
<8> Specifies the maximum amount of time (in milliseconds) to wait when sending a reply message to the output channel.
@@ -154,9 +154,9 @@ Optional.
154
154
== Claim Once
155
155
156
156
Sometimes, a particular message must be claimed only once.
157
-
As an analogy, consider process of handling airplane luggage.
157
+
As an analogy, consider a process of handling airplane luggage.
158
158
You're checking in your luggage on departure and claiming it on arrival.
159
-
Once the luggage has been claimed, it can not be claimed again without first checking it back in.
159
+
Once the luggage has been claimed, it cannot be claimed again without first checking it back in.
160
160
To accommodate such cases, we introduced a `remove-message` boolean attribute on the `claim-check-out` transformer.
161
161
This attribute is set to `false` by default.
162
162
However, if set to `true`, the claimed message is removed from the `MessageStore` so that it cannot be claimed again.
0 commit comments