提交 | 用户 | 时间
|
e7c126
|
1 |
package com.xxl.job.admin.core.route.strategy; |
H |
2 |
|
|
3 |
import com.xxl.job.admin.core.route.ExecutorRouter; |
|
4 |
import com.xxl.job.core.biz.model.ReturnT; |
|
5 |
import com.xxl.job.core.biz.model.TriggerParam; |
|
6 |
|
|
7 |
import java.util.List; |
|
8 |
|
|
9 |
/** |
|
10 |
* Created by xuxueli on 17/3/10. |
|
11 |
*/ |
|
12 |
public class ExecutorRouteLast extends ExecutorRouter { |
|
13 |
|
|
14 |
@Override |
|
15 |
public ReturnT<String> route(TriggerParam triggerParam, List<String> addressList) { |
|
16 |
return new ReturnT<String>(addressList.get(addressList.size()-1)); |
|
17 |
} |
|
18 |
|
|
19 |
} |