wuxw7
2017-04-26 074a0d6b7427960eba09b76c77d8df69ee5d4d2d
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
package com.java110.order.executor;
 
import java.util.concurrent.Callable;
 
/**
 * Created by wuxw on 2017/4/25.
 */
public class PrintInt implements Callable<Integer> {
    @Override
    public Integer call() throws Exception {
 
        System.out.println("1234567");
 
        Thread.sleep(10000);
        throwException();
 
        return 1111;
    }
 
    private void throwException(){
        throw new IllegalArgumentException("异常了,报出来。。。");
    }
}