com.gemstone.gemfire.internal.cache.locks.QueuedSynchronizer.getQueueLength()方法的使用及代码示例

x33g5p2x  于2022-01-29 转载在 其他  
字(2.5k)|赞(0)|评价(0)|浏览(82)

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

QueuedSynchronizer.getQueueLength介绍

[英]Returns an estimate of the number of threads waiting to acquire. The value is only an estimate because the number of threads may change dynamically while this method traverses internal data structures. This method is designed for use in monitoring system state, not for synchronization control.
[中]返回等待获取的线程数的估计值。该值只是一个估计值,因为当该方法遍历内部数据结构时,线程的数量可能会动态变化。该方法设计用于监控系统状态,而不是用于同步控制。

代码示例

代码示例来源:origin: io.snappydata/gemfire-core

/**
 * Returns an estimate of the number of threads waiting to acquire this lock.
 * The value is only an estimate because the number of threads may change
 * dynamically while this method traverses internal data structures. This
 * method is designed for use in monitoring of the system state, not for
 * synchronization control.
 * 
 * @return the estimated number of threads waiting for this lock
 */
public final int getQueueLength() {
 return this.sync.getQueueLength();
}

代码示例来源:origin: io.snappydata/gemfirexd-core

/**
 * Returns an estimate of the number of threads waiting to acquire either the
 * read or write lock. The value is only an estimate because the number of
 * threads may change dynamically while this method traverses internal data
 * structures. This method is designed for use in monitoring of the system
 * state, not for synchronization control.
 * 
 * @return the estimated number of threads waiting for this lock
 */
public final int getQueueLength() {
 return this.sync.getQueueLength();
}

代码示例来源:origin: io.snappydata/snappydata-store-core

/**
 * Returns an estimate of the number of threads waiting to acquire either the
 * read or write lock. The value is only an estimate because the number of
 * threads may change dynamically while this method traverses internal data
 * structures. This method is designed for use in monitoring of the system
 * state, not for synchronization control.
 * 
 * @return the estimated number of threads waiting for this lock
 */
public final int getQueueLength() {
 return this.sync.getQueueLength();
}

代码示例来源:origin: io.snappydata/gemfirexd

/**
 * Returns an estimate of the number of threads waiting to acquire either the
 * read or write lock. The value is only an estimate because the number of
 * threads may change dynamically while this method traverses internal data
 * structures. This method is designed for use in monitoring of the system
 * state, not for synchronization control.
 * 
 * @return the estimated number of threads waiting for this lock
 */
public final int getQueueLength() {
 return this.sync.getQueueLength();
}

相关文章