本文整理了Java中com.google.common.util.concurrent.Monitor.signalAllWaiters()
方法的一些代码示例,展示了Monitor.signalAllWaiters()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Monitor.signalAllWaiters()
方法的具体详情如下:
包路径:com.google.common.util.concurrent.Monitor
类名称:Monitor
方法名:signalAllWaiters
[英]Signals all threads waiting on guards.
[中]通知所有等待守卫的线程。
代码示例来源:origin: google/j2objc
/**
* Exactly like guard.isSatisfied(), but in addition signals all waiting threads in the (hopefully
* unlikely) event that isSatisfied() throws.
*/
@GuardedBy("lock")
private boolean isSatisfied(Guard guard) {
try {
return guard.isSatisfied();
} catch (Throwable throwable) {
signalAllWaiters();
throw Throwables.propagate(throwable);
}
}
代码示例来源:origin: google/guava
/**
* Exactly like guard.isSatisfied(), but in addition signals all waiting threads in the (hopefully
* unlikely) event that isSatisfied() throws.
*/
@GuardedBy("lock")
private boolean isSatisfied(Guard guard) {
try {
return guard.isSatisfied();
} catch (Throwable throwable) {
signalAllWaiters();
throw throwable;
}
}
代码示例来源:origin: wildfly/wildfly
/**
* Exactly like guard.isSatisfied(), but in addition signals all waiting threads in the (hopefully
* unlikely) event that isSatisfied() throws.
*/
@GuardedBy("lock")
private boolean isSatisfied(Guard guard) {
try {
return guard.isSatisfied();
} catch (Throwable throwable) {
signalAllWaiters();
throw Throwables.propagate(throwable);
}
}
代码示例来源:origin: at.bestsolution.efxclipse.eclipse/com.google.guava
/**
* Exactly like guard.isSatisfied(), but in addition signals all waiting threads in the
* (hopefully unlikely) event that isSatisfied() throws.
*/
@GuardedBy("lock")
private boolean isSatisfied(Guard guard) {
try {
return guard.isSatisfied();
} catch (Throwable throwable) {
signalAllWaiters();
throw Throwables.propagate(throwable);
}
}
代码示例来源:origin: com.ning.billing/killbill-osgi-bundles-jruby
/**
* Exactly like guard.isSatisfied(), but in addition signals all waiting threads in the
* (hopefully unlikely) event that isSatisfied() throws.
*/
@GuardedBy("lock")
private boolean isSatisfied(Guard guard) {
try {
return guard.isSatisfied();
} catch (Throwable throwable) {
signalAllWaiters();
throw Throwables.propagate(throwable);
}
}
代码示例来源:origin: com.google.guava/guava-jdk5
/**
* Exactly like guard.isSatisfied(), but in addition signals all waiting threads in the
* (hopefully unlikely) event that isSatisfied() throws.
*/
@GuardedBy("lock")
private boolean isSatisfied(Guard guard) {
try {
return guard.isSatisfied();
} catch (Throwable throwable) {
signalAllWaiters();
throw Throwables.propagate(throwable);
}
}
代码示例来源:origin: com.diffplug.guava/guava-concurrent
/**
* Exactly like guard.isSatisfied(), but in addition signals all waiting threads in the
* (hopefully unlikely) event that isSatisfied() throws.
*/
@GuardedBy("lock")
private boolean isSatisfied(Guard guard) {
try {
return guard.isSatisfied();
} catch (Throwable throwable) {
signalAllWaiters();
throw Throwables.propagate(throwable);
}
}
代码示例来源:origin: com.ning.billing/killbill-osgi-bundles-analytics
/**
* Exactly like guard.isSatisfied(), but in addition signals all waiting threads in the
* (hopefully unlikely) event that isSatisfied() throws.
*/
@GuardedBy("lock")
private boolean isSatisfied(Guard guard) {
try {
return guard.isSatisfied();
} catch (Throwable throwable) {
signalAllWaiters();
throw Throwables.propagate(throwable);
}
}
代码示例来源:origin: org.kill-bill.billing/killbill-osgi-bundles-jruby
/**
* Exactly like guard.isSatisfied(), but in addition signals all waiting threads in the
* (hopefully unlikely) event that isSatisfied() throws.
*/
@GuardedBy("lock")
private boolean isSatisfied(Guard guard) {
try {
return guard.isSatisfied();
} catch (Throwable throwable) {
signalAllWaiters();
throw Throwables.propagate(throwable);
}
}
代码示例来源:origin: Nextdoor/bender
/**
* Exactly like guard.isSatisfied(), but in addition signals all waiting threads in the
* (hopefully unlikely) event that isSatisfied() throws.
*/
@GuardedBy("lock")
private boolean isSatisfied(Guard guard) {
try {
return guard.isSatisfied();
} catch (Throwable throwable) {
signalAllWaiters();
throw Throwables.propagate(throwable);
}
}
代码示例来源:origin: org.jboss.eap/wildfly-client-all
/**
* Exactly like guard.isSatisfied(), but in addition signals all waiting threads in the (hopefully
* unlikely) event that isSatisfied() throws.
*/
@GuardedBy("lock")
private boolean isSatisfied(Guard guard) {
try {
return guard.isSatisfied();
} catch (Throwable throwable) {
signalAllWaiters();
throw Throwables.propagate(throwable);
}
}
代码示例来源:origin: org.kill-bill.billing/killbill-platform-osgi-bundles-logger
/**
* Exactly like guard.isSatisfied(), but in addition signals all waiting threads in the (hopefully
* unlikely) event that isSatisfied() throws.
*/
@GuardedBy("lock")
private boolean isSatisfied(Guard guard) {
try {
return guard.isSatisfied();
} catch (Throwable throwable) {
signalAllWaiters();
throw Throwables.propagate(throwable);
}
}
内容来源于网络,如有侵权,请联系作者删除!