public synchronized void updateExpiry(final long time, final TimeUnit tunit) {
Args.notNull(tunit, "Time unit");
this.updated = System.currentTimeMillis();
final long newExpiry;
if (time > 0) {
newExpiry = this.updated + tunit.toMillis(time);
} else {
newExpiry = Long.MAX_VALUE;
}
this.expiry = Math.min(newExpiry, this.validUnit);
}
PoolEntry.java 文件源码
java
阅读 22
收藏 0
点赞 0
评论 0
项目:remote-files-sync
作者:
评论列表
文章目录