wuxw
2019-05-07 80f9d76904c5d28c77a4d9bbaca9daa328e7806c
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.log.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("异常了,报出来。。。");
    }
}