本文整理了Java中com.google.common.util.concurrent.Monitor.isSatisfied()
方法的一些代码示例,展示了Monitor.isSatisfied()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Monitor.isSatisfied()
方法的具体详情如下:
包路径:com.google.common.util.concurrent.Monitor
类名称:Monitor
方法名:isSatisfied
[英]Exactly like guard.isSatisfied(), but in addition signals all waiting threads in the (hopefully unlikely) event that isSatisfied() throws.
[中]和警卫一模一样。ISsatified(),但另外,在ISsatified()引发的事件中(希望不太可能)通知所有等待的线程。
代码示例来源:origin: google/guava
private void signalNextWaiter() {
for (Guard guard = activeGuards; guard != null; guard = guard.next) {
if (isSatisfied(guard)) {
guard.condition.signal();
break;
代码示例来源:origin: wildfly/wildfly
private void signalNextWaiter() {
for (Guard guard = activeGuards; guard != null; guard = guard.next) {
if (isSatisfied(guard)) {
guard.condition.signal();
break;
代码示例来源:origin: at.bestsolution.efxclipse.eclipse/com.google.guava
private void signalNextWaiter() {
for (Guard guard = activeGuards; guard != null; guard = guard.next) {
if (isSatisfied(guard)) {
guard.condition.signal();
break;
代码示例来源:origin: com.ning.billing/killbill-osgi-bundles-jruby
private void signalNextWaiter() {
for (Guard guard = activeGuards; guard != null; guard = guard.next) {
if (isSatisfied(guard)) {
guard.condition.signal();
break;
代码示例来源:origin: com.google.guava/guava-jdk5
private void signalNextWaiter() {
for (Guard guard = activeGuards; guard != null; guard = guard.next) {
if (isSatisfied(guard)) {
guard.condition.signal();
break;
代码示例来源:origin: com.ning.billing/killbill-osgi-bundles-analytics
private void signalNextWaiter() {
for (Guard guard = activeGuards; guard != null; guard = guard.next) {
if (isSatisfied(guard)) {
guard.condition.signal();
break;
代码示例来源:origin: Nextdoor/bender
private void signalNextWaiter() {
for (Guard guard = activeGuards; guard != null; guard = guard.next) {
if (isSatisfied(guard)) {
guard.condition.signal();
break;
代码示例来源:origin: com.diffplug.guava/guava-concurrent
private void signalNextWaiter() {
for (Guard guard = activeGuards; guard != null; guard = guard.next) {
if (isSatisfied(guard)) {
guard.condition.signal();
break;
代码示例来源:origin: org.kill-bill.billing/killbill-osgi-bundles-jruby
private void signalNextWaiter() {
for (Guard guard = activeGuards; guard != null; guard = guard.next) {
if (isSatisfied(guard)) {
guard.condition.signal();
break;
代码示例来源:origin: org.kill-bill.billing/killbill-platform-osgi-bundles-logger
private void signalNextWaiter() {
for (Guard guard = activeGuards; guard != null; guard = guard.next) {
if (isSatisfied(guard)) {
guard.condition.signal();
break;
代码示例来源:origin: org.jboss.eap/wildfly-client-all
private void signalNextWaiter() {
for (Guard guard = activeGuards; guard != null; guard = guard.next) {
if (isSatisfied(guard)) {
guard.condition.signal();
break;
内容来源于网络,如有侵权,请联系作者删除!