|
JavaTM Platform Standard Ed. 6 |
|||||||||
| 전의 클래스 다음의 클래스 | 프레임 있어 프레임 없음 | |||||||||
| 개요: 상자 | 필드 | 생성자 | 메소드 | 상세: 필드 | 생성자 | 메소드 | |||||||||
java.lang.Objectjava.lang.management.LockInfo
public class LockInfo
락에 관한 정보. 락은 편입의 객체 모니터인 「소유 가능한 싱크로나이저」인가, 싱크로나이저에 관련 지을 수 있었던 Condition 객체입니다.
소유 가능한 싱크로나이저란, thread가 배타적으로 소유 가능한 싱크로나이저이며,AbstractOwnableSynchronizer 또는 그 서브 클래스를 사용해 동기 프로퍼티을 구현합니다. ReentrantLock 및 ReentrantReadWriteLock 는, 플랫폼에서 제공되는 소유 가능한 싱크로나이저의 2 개의 예입니다.
CompositeData 에 맵 됩니다.
AbstractOwnableSynchronizer ,
Condition | 생성자 의 개요 | |
|---|---|
LockInfo (String className,
int identityHashCode)
LockInfo 객체를 구축합니다. |
|
| 메소드의 개요 | |
|---|---|
String |
getClassName ()
락 객체의 클래스의 완전한 이름(FQN)을 돌려줍니다. |
int |
getIdentityHashCode ()
System.identityHashCode(java.lang.Object) 메소드로부터 반환되는 락 객체의 식별 해시 코드를 돌려줍니다. |
String |
toString ()
락의 캐릭터 라인 표현을 돌려줍니다. |
| 클래스 java.lang. Object 로부터 상속된 메소드 |
|---|
clone , equals , finalize , getClass , hashCode , notify , notifyAll , wait , wait , wait |
| 생성자 의 상세 |
|---|
@ConstructorProperties (value ={"className","identityHashCode"})
public LockInfo(String className,
int identityHashCode)
className - 락 객체의 클래스의 완전한 이름(FQN)identityHashCode - 락 객체의
식별 해시 코드 | 메소드의 상세 |
|---|
public String getClassName()
public int getIdentityHashCode()
System.identityHashCode(java.lang.Object) 메소드로부터 반환되는 락 객체의 식별 해시 코드를 돌려줍니다.
public String toString()
여기서,lock 는 락 객체입니다.lock.getClass(). getName() + '@' + Integer.toHexString(System.identityHashCode(lock))
Object 내의 toString
|
JavaTM Platform Standard Ed. 6 |
|||||||||
| 전의 클래스 다음의 클래스 | 프레임 있어 프레임 없음 | |||||||||
| 개요: 상자 | 필드 | 생성자 | 메소드 | 상세: 필드 | 생성자 | 메소드 | |||||||||
Copyright 2006 Sun Microsystems, Inc. All rights reserved. Use is subject to license terms . Documentation Redistribution Policy 도 참조해 주세요.