本文整理了Java中java.util.concurrent.locks.ReentrantReadWriteLock.toString
方法的一些代码示例,展示了ReentrantReadWriteLock.toString
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。ReentrantReadWriteLock.toString
方法的具体详情如下:
包路径:java.util.concurrent.locks.ReentrantReadWriteLock
类名称:ReentrantReadWriteLock
方法名:toString
[英]Returns a string identifying this lock, as well as its lock state. The state, in brackets, includes the String "Write locks ="followed by the number of reentrantly held write locks, and the String "Read locks =" followed by the number of held read locks.
[中]返回标识此锁及其锁状态的字符串。括号中的状态包括字符串“Write locks=”和字符串“Read locks=”后跟可重入持有的写锁数,以及字符串“Read locks=”和持有的读锁数。
代码示例来源:origin: neo4j/neo4j
@Override
public String toString()
{
return "AbstractKeyValyeStore-UpdateLock[owner = " + getOwner() +
", is write locked = " + isWriteLocked() +
", writer holds count = " + getWriteHoldCount() +
", read holds count = " + getReadHoldCount() +
", readers count = " + getReadLockCount() +
", threads waiting for write lock = " + getQueuedWriterThreads() +
", threads waiting for read lock = " + getQueuedReaderThreads() +
"] " + super.toString();
}
}
代码示例来源:origin: net.sf.ehcache/ehcache
@Override
public String toString() {
return super.toString() + " count: " + count;
}
代码示例来源:origin: org.sonatype.nexus/nexus-api
/**
* Mainly for debug purposes, see DefaultRepositoryItemUidTest UT how is this used to verify conditions.
*/
@Override
public String toString()
{
return lock.toString();
}
}
代码示例来源:origin: org.apache.servicemix.bundles/org.apache.servicemix.bundles.ehcache
@Override
public String toString() {
return super.toString() + " count: " + count;
}
代码示例来源:origin: net.sf.ehcache.internal/ehcache-core
@Override
public String toString() {
return super.toString() + " count: " + count;
}
代码示例来源:origin: org.apache.clerezza.commons-rdf/commons-rdf-impl-utils
@Override
public String toString() {
return super.toString();
}
代码示例来源:origin: org.sonatype.nexus.bundles/org.sonatype.nexus.bundles.ehcache
@Override
public String toString() {
return super.toString() + " count: " + count;
}
代码示例来源:origin: org.neo4j/neo4j-kernel
@Override
public String toString()
{
return "AbstractKeyValyeStore-UpdateLock[owner = " + getOwner() +
", is write locked = " + isWriteLocked() +
", writer holds count = " + getWriteHoldCount() +
", read holds count = " + getReadHoldCount() +
", readers count = " + getReadLockCount() +
", threads waiting for write lock = " + getQueuedWriterThreads() +
", threads waiting for read lock = " + getQueuedReaderThreads() +
"] " + super.toString();
}
}
内容来源于网络,如有侵权,请联系作者删除!