JavaTM Platform
Standard Ed. 6

java.util.concurrent.locks
클래스 AbstractOwnableSynchronizer

java.lang.Object 
  상위를 확장 java.util.concurrent.locks.AbstractOwnableSynchronizer
모든 구현된 인터페이스:
Serializable
직계의 기존의 서브 클래스:
AbstractQueuedLongSynchronizer , AbstractQueuedSynchronizer


public abstract class AbstractOwnableSynchronizer
extends Object
implements Serializable

thread가 배타적으로 소유할 수 있는 싱크로나이저입니다. 이 클래스는, 소유권의 개념을 필요로 하는 일이 있는 락이나 관련하는 싱크로나이저를 작성하기 위한 기반을 제공합니다. AbstractOwnableSynchronizer 클래스 자체는 이 정보를 관리 또는 사용하지 않습니다. 다만 서브 클래스 및 툴에서는, 적절히 보관 유지된 값을 사용해, 액세스를 제어 및 감시하거나 진단을 제공하거나 할 수 있습니다.

도입된 버젼:
1.6
관련 항목:
직렬화 된 형식

생성자 의 개요
protected AbstractOwnableSynchronizer ()
          서브 클래스에 의해 사용되는 빈 상태(empty)의 생성자 입니다.
 
메소드의 개요
protected  Thread getExclusiveOwnerThread ()
          setExclusiveOwnerThread 로 마지막에 설정된 thread를 돌려주어, 설정되었던 적이 없는 경우는 null 를 돌려줍니다.
protected  void setExclusiveOwnerThread (Thread  t)
          현재 배타 액세스를 소유하는 thread를 설정합니다.
 
클래스 java.lang. Object 로부터 상속된 메소드
clone , equals , finalize , getClass , hashCode , notify , notifyAll , toString , wait , wait , wait
 

생성자 의 상세

AbstractOwnableSynchronizer

protected AbstractOwnableSynchronizer()
서브 클래스에 의해 사용되는 빈 상태(empty)의 생성자 입니다.

메소드의 상세

setExclusiveOwnerThread

protected final void setExclusiveOwnerThread(Thread  t)
현재 배타 액세스를 소유하는 thread를 설정합니다. null 인수는, 액세스를 소유하고 있는 thread가 없는 것을 나타냅니다. 그 이외의 경우, 이 메소드는 동기나 volatile 필드의 액세스를 실시하지 않습니다.


getExclusiveOwnerThread

protected final Thread  getExclusiveOwnerThread()
setExclusiveOwnerThread 로 마지막에 설정된 thread를 돌려주어, 설정되었던 적이 없는 경우는 null 를 돌려줍니다. 그 이외의 경우, 이 메소드는 동기나 volatile 필드의 액세스를 실시하지 않습니다.

반환값:
소유하는 thread

JavaTM Platform
Standard Ed. 6

버그의 보고와 기능의 요청
한층 더 자세한 API 레퍼런스 및 개발자 문서에 대해서는,Java SE 개발자용 문서를 참조해 주세요. 개발자전용의 상세한 해설, 개념의 개요, 용어의 정의, 버그의 회피책, 및 코드 실례가 포함되어 있습니다.

Copyright 2006 Sun Microsystems, Inc. All rights reserved. Use is subject to license terms . Documentation Redistribution Policy 도 참조해 주세요.