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