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

/**
 * Created by Joseph on 7/25/2016.
 */
public class RealData implements Data{
    protected final String result;
    public RealData(String para) {
        //RealData构造很曼，使用sleep
        StringBuffer sb=new StringBuffer();
        for (int i = 0; i < 10; i++) {
            sb.append(para);
            try {
                Thread.sleep(1000);
            } catch (InterruptedException e) {
            }
        }
        result=sb.toString();
    }
    public String getResult() {
        return result;
    }
}
