com.google.common.util.concurrent.Monitor.isSatisfied()方法的使用及代码示例

x33g5p2x  于2022-01-25 转载在 其他  
字(2.6k)|赞(0)|评价(0)|浏览(143)

本文整理了Java中com.google.common.util.concurrent.Monitor.isSatisfied()方法的一些代码示例,展示了Monitor.isSatisfied()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Monitor.isSatisfied()方法的具体详情如下:
包路径:com.google.common.util.concurrent.Monitor
类名称:Monitor
方法名:isSatisfied

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;

相关文章