1 | |
|
2 | |
|
3 | |
|
4 | |
|
5 | |
|
6 | |
|
7 | |
|
8 | |
|
9 | |
|
10 | |
package org.mule.transport.quartz.jobs; |
11 | |
|
12 | |
import org.mule.transport.quartz.config.AbstractJobConfig; |
13 | |
|
14 | |
import org.quartz.Job; |
15 | |
import org.quartz.StatefulJob; |
16 | |
|
17 | |
|
18 | |
|
19 | |
|
20 | 0 | public class EndpointPollingJobConfig extends AbstractJobConfig |
21 | |
{ |
22 | |
private String endpointRef; |
23 | |
|
24 | |
|
25 | 0 | private int timeout = 5000; |
26 | |
|
27 | |
public String getEndpointRef() |
28 | |
{ |
29 | 0 | return endpointRef; |
30 | |
} |
31 | |
|
32 | |
public void setEndpointRef(String endpointRef) |
33 | |
{ |
34 | 0 | this.endpointRef = endpointRef; |
35 | 0 | } |
36 | |
|
37 | |
public int getTimeout() |
38 | |
{ |
39 | 0 | return timeout; |
40 | |
} |
41 | |
|
42 | |
public void setTimeout(int timeout) |
43 | |
{ |
44 | 0 | this.timeout = timeout; |
45 | 0 | } |
46 | |
|
47 | |
@Override |
48 | |
protected Class<? extends StatefulJob> getStatefulJobClass() |
49 | |
{ |
50 | 0 | return StatefulEndpointPollingJob.class; |
51 | |
} |
52 | |
|
53 | |
@Override |
54 | |
protected Class<? extends Job> getStatelessJobClass() |
55 | |
{ |
56 | 0 | return EndpointPollingJob.class; |
57 | |
} |
58 | |
} |