package com.flying.promotion.javatuning.future.jdk;

import java.util.concurrent.Callable;

/**
 * Created by Joseph on 7/25/2016.
 */
public class RealData implements Callable<String>{
    private String para;
    public RealData(String para){
        this.para=para;
    }
    @Override
    public String call() throws Exception {

        StringBuffer sb=new StringBuffer();
        for (int i = 0; i < 10; i++) {
            sb.append(para);
            try {
                Thread.sleep(100);
            } catch (InterruptedException e) {
            }
        }
        return sb.toString();
    }


}
