本文整理了Java中com.tc.util.Assert.post()
方法的一些代码示例,展示了Assert.post()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Assert.post()
方法的具体详情如下:
包路径:com.tc.util.Assert
类名称:Assert
方法名:post
[英]Assert postcondition
[中]断言后条件
代码示例来源:origin: org.terracotta.toolkit/terracotta-toolkit-1.0-impl
private ConcurrentDistributedMapDso(final int lockLevel, final LockStrategy<? super K> lockStrategy) {
// ensure that DSO is active at construction time, ie. fail fast
Assert.pre(!(ManagerUtil.getManager() instanceof NullManager));
this.dsoLockType = lockLevel;
this.store = new SelectableConcurrentHashMap();
this.lockStrategy = lockStrategy;
this.localSize = new AtomicInteger(0);
Assert.post(this.store != null);
}
代码示例来源:origin: org.terracotta.toolkit/terracotta-toolkit-1.3-impl
private ConcurrentDistributedMapDso(final int lockLevel, final GenericLockStrategy<L, ? super K> lockStrategy) {
// ensure that DSO is active at construction time, ie. fail fast
Assert.pre(!(ManagerUtil.getManager() instanceof NullManager));
this.dsoLockType = lockLevel;
this.store = new SelectableConcurrentHashMap();
this.lockStrategy = lockStrategy;
this.localSize = new AtomicInteger(0);
this.nullLockStrategy = lockStrategy instanceof NullLockStrategy;
Assert.post(this.store != null);
}
代码示例来源:origin: org.terracotta.toolkit/terracotta-toolkit-1.4-impl
private ConcurrentDistributedMapDso(final int lockLevel, final GenericLockStrategy<L, ? super K> lockStrategy) {
// ensure that DSO is active at construction time, ie. fail fast
Assert.pre(!(ManagerUtil.getManager() instanceof NullManager));
this.dsoLockType = lockLevel;
this.store = new SelectableConcurrentHashMap();
this.lockStrategy = lockStrategy;
this.localSize = new AtomicInteger(0);
this.nullLockStrategy = lockStrategy instanceof NullLockStrategy;
Assert.post(this.store != null);
}
代码示例来源:origin: org.terracotta.modules/tim-wan-collections
private WANConcurrentMapDsoInstrumented(final int lockLevel) {
// ensure that DSO is active at construction time, ie. fail fast
Assert.pre(!(ManagerUtil.getManager() instanceof NullManager));
this.dsoLockType = lockLevel;
store = new NonBlockingHashMap();
Assert.post(store != null);
}
内容来源于网络,如有侵权,请联系作者删除!