1 | |
|
2 | |
|
3 | |
|
4 | |
|
5 | |
|
6 | |
|
7 | |
package org.mule.service.processor; |
8 | |
|
9 | |
import org.mule.api.source.MessageSource; |
10 | |
import org.mule.routing.requestreply.AbstractAsyncRequestReplyRequester; |
11 | |
import org.mule.service.ServiceAsyncReplyCompositeMessageSource; |
12 | |
|
13 | 0 | public class ServiceAsyncRequestReplyRequestor extends AbstractAsyncRequestReplyRequester |
14 | |
{ |
15 | |
|
16 | |
protected void postLatchAwait(String asyncReplyCorrelationId) |
17 | |
{ |
18 | 0 | if (replyMessageSource instanceof ServiceAsyncReplyCompositeMessageSource) |
19 | |
{ |
20 | 0 | ((ServiceAsyncReplyCompositeMessageSource) replyMessageSource).expireAggregation(asyncReplyCorrelationId); |
21 | |
} |
22 | 0 | } |
23 | |
|
24 | |
@Override |
25 | |
protected void verifyReplyMessageSource(MessageSource messageSource) |
26 | |
{ |
27 | 0 | if (!(messageSource instanceof ServiceAsyncReplyCompositeMessageSource)) |
28 | |
{ |
29 | 0 | throw new IllegalArgumentException( |
30 | |
"ServiceAsyncReplyCompositeMessageSource async reply MessageSource must be used with ServiceAsyncRequestReplyRequestor"); |
31 | |
} |
32 | 0 | } |
33 | |
} |