阅读背景:

JAVA多线程-构建可靠的结果缓存

来源:互联网 

在学习了前面关于多线程的博客以后,下面来介绍一个构建可靠成果缓存的例子。现在有以下场景:

import java.math.BigInteger;
interface Computable<A,V>{
	public V compute(A arg) throws InterruptedException;
}
public class Demo  implements Computable<String,BigInteger>{
	public BigInteger compute(String arg) throws InterruptedException{
		return new BigInteger(arg);
	}
}impor




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: