1 | |
|
2 | |
|
3 | |
|
4 | |
|
5 | |
|
6 | |
|
7 | |
|
8 | |
|
9 | |
|
10 | |
|
11 | |
package org.mule.transport.polling; |
12 | |
|
13 | |
import org.mule.api.MuleContext; |
14 | |
import org.mule.api.MuleException; |
15 | |
import org.mule.api.construct.FlowConstruct; |
16 | |
import org.mule.api.endpoint.InboundEndpoint; |
17 | |
import org.mule.api.lifecycle.InitialisationException; |
18 | |
import org.mule.transport.AbstractConnector; |
19 | |
|
20 | |
public class MessageProcessorPollingConnector extends AbstractConnector |
21 | |
{ |
22 | |
|
23 | |
public MessageProcessorPollingConnector(MuleContext context) |
24 | |
{ |
25 | 0 | super(context); |
26 | 0 | } |
27 | |
|
28 | |
@Override |
29 | |
protected void doConnect() throws Exception |
30 | |
{ |
31 | 0 | } |
32 | |
|
33 | |
@Override |
34 | |
protected void doDisconnect() throws Exception |
35 | |
{ |
36 | 0 | } |
37 | |
|
38 | |
@Override |
39 | |
protected void doDispose() |
40 | |
{ |
41 | 0 | } |
42 | |
|
43 | |
@Override |
44 | |
protected void doInitialise() throws InitialisationException |
45 | |
{ |
46 | 0 | } |
47 | |
|
48 | |
@Override |
49 | |
protected void doStart() throws MuleException |
50 | |
{ |
51 | 0 | } |
52 | |
|
53 | |
@Override |
54 | |
protected void doStop() throws MuleException |
55 | |
{ |
56 | |
|
57 | 0 | } |
58 | |
|
59 | |
public String getProtocol() |
60 | |
{ |
61 | 0 | return "polling"; |
62 | |
} |
63 | |
|
64 | |
@Override |
65 | |
protected Object getReceiverKey(FlowConstruct flowConstruct, InboundEndpoint endpoint) |
66 | |
{ |
67 | 0 | return flowConstruct.getName() + "~" + endpoint.getEndpointURI().getAddress(); |
68 | |
} |
69 | |
|
70 | |
} |