1
2
3
4
5
6
7
8
9
10
11 package org.mule.processor;
12
13 import org.mule.api.MessagingException;
14 import org.mule.api.MuleEvent;
15 import org.mule.api.config.ThreadingProfile;
16 import org.mule.api.context.WorkManagerSource;
17
18 public class LaxAsyncInterceptingMessageProcessor extends AsyncInterceptingMessageProcessor
19 {
20
21 public LaxAsyncInterceptingMessageProcessor(WorkManagerSource workManagerSource)
22 {
23 super(workManagerSource);
24 }
25
26 public LaxAsyncInterceptingMessageProcessor(ThreadingProfile threadingProfile,
27 String name,
28 int shutdownTimeout)
29 {
30 super(threadingProfile, name, shutdownTimeout);
31 }
32
33 protected boolean isProcessAsync(MuleEvent event) throws MessagingException
34 {
35 return doThreading && !event.isSynchronous();
36 }
37
38 }