java.util.concurrent.locks.ReentrantLock.hasQueuedThread()方法的使用及代码示例

x33g5p2x  于2022-01-28 转载在 其他  
字(8.1k)|赞(0)|评价(0)|浏览(139)

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

ReentrantLock.hasQueuedThread介绍

[英]Queries whether the given thread is waiting to acquire this lock. Note that because cancellations may occur at any time, a true return does not guarantee that this thread will ever acquire this lock. This method is designed primarily for use in monitoring of the system state.
[中]查询给定线程是否正在等待获取此锁。请注意,由于取消操作可能随时发生,因此真正的返回并不保证该线程将获得该锁。该方法主要用于监控系统状态。

代码示例

代码示例来源:origin: google/guava

/**
 * Queries whether the given thread is waiting to enter this monitor. Note that because
 * cancellations may occur at any time, a {@code true} return does not guarantee that this thread
 * will ever enter this monitor. This method is designed primarily for use in monitoring of the
 * system state.
 */
public boolean hasQueuedThread(Thread thread) {
 return lock.hasQueuedThread(thread);
}

代码示例来源:origin: prestodb/presto

/**
 * Queries whether the given thread is waiting to enter this monitor. Note that because
 * cancellations may occur at any time, a {@code true} return does not guarantee that this thread
 * will ever enter this monitor. This method is designed primarily for use in monitoring of the
 * system state.
 */
public boolean hasQueuedThread(Thread thread) {
 return lock.hasQueuedThread(thread);
}

代码示例来源:origin: google/j2objc

/**
 * Queries whether the given thread is waiting to enter this monitor. Note that because
 * cancellations may occur at any time, a {@code true} return does not guarantee that this thread
 * will ever enter this monitor. This method is designed primarily for use in monitoring of the
 * system state.
 */
public boolean hasQueuedThread(Thread thread) {
 return lock.hasQueuedThread(thread);
}

代码示例来源:origin: wildfly/wildfly

/**
 * Queries whether the given thread is waiting to enter this monitor. Note that because
 * cancellations may occur at any time, a {@code true} return does not guarantee that this thread
 * will ever enter this monitor. This method is designed primarily for use in monitoring of the
 * system state.
 */
public boolean hasQueuedThread(Thread thread) {
 return lock.hasQueuedThread(thread);
}

代码示例来源:origin: org.weakref/jmxutils

/**
 * Queries whether the given thread is waiting to enter this monitor. Note that because
 * cancellations may occur at any time, a {@code true} return does not guarantee that this thread
 * will ever enter this monitor. This method is designed primarily for use in monitoring of the
 * system state.
 */
public boolean hasQueuedThread(Thread thread) {
 return lock.hasQueuedThread(thread);
}

代码示例来源:origin: com.atlassian.guava/guava

/**
 * Queries whether the given thread is waiting to enter this monitor. Note that because
 * cancellations may occur at any time, a {@code true} return does not guarantee that this thread
 * will ever enter this monitor. This method is designed primarily for use in monitoring of the
 * system state.
 */
public boolean hasQueuedThread(Thread thread) {
 return lock.hasQueuedThread(thread);
}

代码示例来源:origin: io.bitsensor/proto

/**
 * Queries whether the given thread is waiting to enter this monitor. Note that because
 * cancellations may occur at any time, a {@code true} return does not guarantee that this thread
 * will ever enter this monitor. This method is designed primarily for use in monitoring of the
 * system state.
 */
public boolean hasQueuedThread(Thread thread) {
 return lock.hasQueuedThread(thread);
}

代码示例来源:origin: org.kill-bill.billing/killbill-osgi-bundles-jruby

/**
 * Queries whether the given thread is waiting to enter this monitor. Note that because
 * cancellations may occur at any time, a {@code true} return does not guarantee that this thread
 * will ever enter this monitor. This method is designed primarily for use in monitoring of the
 * system state.
 */
public boolean hasQueuedThread(Thread thread) {
 return lock.hasQueuedThread(thread);
}

代码示例来源:origin: com.ning.billing/killbill-osgi-bundles-analytics

/**
 * Queries whether the given thread is waiting to enter this monitor. Note that because
 * cancellations may occur at any time, a {@code true} return does not guarantee that this thread
 * will ever enter this monitor. This method is designed primarily for use in monitoring of the
 * system state.
 */
public boolean hasQueuedThread(Thread thread) {
 return lock.hasQueuedThread(thread);
}

代码示例来源:origin: com.alibaba.edas.acm/acm-sdk

/**
 * Queries whether the given thread is waiting to enter this monitor. Note that because
 * cancellations may occur at any time, a {@code true} return does not guarantee that this thread
 * will ever enter this monitor. This method is designed primarily for use in monitoring of the
 * system state.
 */
public boolean hasQueuedThread(Thread thread) {
 return lock.hasQueuedThread(thread);
}

代码示例来源:origin: io.prestosql/presto-jdbc

/**
 * Queries whether the given thread is waiting to enter this monitor. Note that because
 * cancellations may occur at any time, a {@code true} return does not guarantee that this thread
 * will ever enter this monitor. This method is designed primarily for use in monitoring of the
 * system state.
 */
public boolean hasQueuedThread(Thread thread) {
 return lock.hasQueuedThread(thread);
}

代码示例来源:origin: com.facebook.presto.hive/hive-apache-jdbc

/**
 * Queries whether the given thread is waiting to enter this monitor. Note that because
 * cancellations may occur at any time, a {@code true} return does not guarantee that this thread
 * will ever enter this monitor. This method is designed primarily for use in monitoring of the
 * system state.
 */
public boolean hasQueuedThread(Thread thread) {
 return lock.hasQueuedThread(thread);
}

代码示例来源:origin: io.prestosql.cassandra/cassandra-driver

/**
 * Queries whether the given thread is waiting to enter this monitor. Note that because
 * cancellations may occur at any time, a {@code true} return does not guarantee that this thread
 * will ever enter this monitor. This method is designed primarily for use in monitoring of the
 * system state.
 */
public boolean hasQueuedThread(Thread thread) {
 return lock.hasQueuedThread(thread);
}

代码示例来源:origin: net.bolbat/bb-utils

/**
 * Queries whether the given thread is waiting to acquire this lock.<br>
 * Check <code>ReentrantLock.hasQueuedThread(thread)</code> for details.
 *
 * @param thread
 *            the thread
 * @return {@code true} if the given thread is queued waiting for this lock and {@code false} otherwise
 */
public boolean hasQueuedThread(final Thread thread) {
  return lock.hasQueuedThread(thread);
}

代码示例来源:origin: io.prestosql.hadoop/hadoop-apache

/**
 * Queries whether the given thread is waiting to enter this monitor. Note that because
 * cancellations may occur at any time, a {@code true} return does not guarantee that this thread
 * will ever enter this monitor. This method is designed primarily for use in monitoring of the
 * system state.
 */
public boolean hasQueuedThread(Thread thread) {
 return lock.hasQueuedThread(thread);
}

代码示例来源:origin: org.hudsonci.lib.guava/guava

/**
 * Queries whether the given thread is waiting to enter this monitor. Note that because
 * cancellations may occur at any time, a {@code true} return does not guarantee that this thread
 * will ever enter this monitor. This method is designed primarily for use in monitoring of the
 * system state.
 */
public boolean hasQueuedThread(Thread thread) {
 return lock.hasQueuedThread(thread);
}

代码示例来源:origin: com.facebook.presto.cassandra/cassandra-driver

/**
 * Queries whether the given thread is waiting to enter this monitor. Note that because
 * cancellations may occur at any time, a {@code true} return does not guarantee that this thread
 * will ever enter this monitor. This method is designed primarily for use in monitoring of the
 * system state.
 */
public boolean hasQueuedThread(Thread thread) {
 return lock.hasQueuedThread(thread);
}

代码示例来源:origin: com.facebook.presto.cassandra/cassandra-server

/**
 * Queries whether the given thread is waiting to enter this monitor. Note that because
 * cancellations may occur at any time, a {@code true} return does not guarantee that this thread
 * will ever enter this monitor. This method is designed primarily for use in monitoring of the
 * system state.
 */
public boolean hasQueuedThread(Thread thread) {
 return lock.hasQueuedThread(thread);
}

代码示例来源:origin: org.apache.drill/drill-shaded-guava

/**
 * Queries whether the given thread is waiting to enter this monitor. Note that because
 * cancellations may occur at any time, a {@code true} return does not guarantee that this thread
 * will ever enter this monitor. This method is designed primarily for use in monitoring of the
 * system state.
 */
public boolean hasQueuedThread(Thread thread) {
 return lock.hasQueuedThread(thread);
}

代码示例来源:origin: seznam/euphoria

/**
 * Queries whether the given thread is waiting to enter this monitor. Note that because
 * cancellations may occur at any time, a {@code true} return does not guarantee that this thread
 * will ever enter this monitor. This method is designed primarily for use in monitoring of the
 * system state.
 */
public boolean hasQueuedThread(Thread thread) {
 return lock.hasQueuedThread(thread);
}

相关文章