|
JavaTM Platform Standard Ed. 6 |
|||||||||
앞의 클래스 다음의 클래스 | 프레임 있어 프레임 없음 | |||||||||
개요: 상자 | 필드 | 생성자 | 메소드 | 상세: 필드 | 생성자 | 메소드 |
java.lang.Objectjava.lang.Throwable
java.lang.Exception
java.lang.InterruptedException
public class InterruptedException
어느 thread가 대기 상태, 휴지 상태, 또는 점유 되고 있을 때, 액티버티의 전인가 그 사이의 어느 쪽인가에 그 thread로 인터럽트가 발생했을 경우에 throw 됩니다. 다만, 경우에 따라서는, 메소드로, 현재의 thread로 인터럽트가 발생했던 적이 있을지 어떨지를 테스트할 수도 있습니다. 이것을 실행하는 경우는, 곧바로 이 예외를 throw 합니다. 이하의 코드를 사용해 이 효과를 실현할 수 있습니다.
if (Thread.interrupted()) // Clears interrupted status! throw new InterruptedException();
Object.wait()
,
Object.wait(long)
,
Object.wait(long, int)
,
Thread.sleep(long)
,
Thread.interrupt()
,
Thread.interrupted()
,
직렬화 된 형식 생성자 의 개요 | |
---|---|
InterruptedException ()
상세 메세지를 지정하지 않고 InterruptedException 를 구축합니다. |
|
InterruptedException (String s)
지정된 상세 메세지를 가지는 InterruptedException 를 구축합니다. |
메소드의 개요 |
---|
클래스 java.lang. Throwable 로부터 상속된 메소드 |
---|
fillInStackTrace , getCause , getLocalizedMessage , getMessage , getStackTrace , initCause , printStackTrace , printStackTrace , printStackTrace , setStackTrace , toString |
클래스 java.lang. Object 로부터 상속된 메소드 |
---|
clone , equals , finalize , getClass , hashCode , notify , notifyAll , wait , wait , wait |
생성자 의 상세 |
---|
public InterruptedException()
InterruptedException
를 구축합니다.
public InterruptedException(String s)
InterruptedException
를 구축합니다.
s
- 상세 메세지
|
JavaTM Platform Standard Ed. 6 |
|||||||||
앞의 클래스 다음의 클래스 | 프레임 있어 프레임 없음 | |||||||||
개요: 상자 | 필드 | 생성자 | 메소드 | 상세: 필드 | 생성자 | 메소드 |
Copyright 2006 Sun Microsystems, Inc. All rights reserved. Use is subject to license terms . Documentation Redistribution Policy 도 참조해 주세요.