Uses of Class java.lang.InterruptedException

Uses in package java.lang.ref

Methods which throw type java.lang.InterruptedException

Reference
Removes a reference from the queue, blocking until a reference is enqueued.
Reference
Removes a reference from the queue, blocking for timeout until a reference is enqueued.

Uses in package java.util.concurrent.locks

Methods which throw type java.lang.InterruptedException

void
Acquires in exclusive mode, aborting if interrupted.
void
Acquires in exclusive mode, aborting if interrupted.
void
Acquires in shared mode, aborting if interrupted.
void
Acquires in shared mode, aborting if interrupted.
void
Implements interruptible condition wait.
void
Implements interruptible condition wait.
void
Causes the current thread to wait until it is signalled or interrupted.
boolean
Implements timed condition wait.
boolean
Implements timed condition wait.
boolean
Condition.await(long time, TimeUnit unit)
Causes the current thread to wait until it is signalled or interrupted, or the specified waiting time elapses.
long
Implements timed condition wait.
long
Implements timed condition wait.
long
Condition.awaitNanos(long nanosTimeout)
Causes the current thread to wait until it is signalled or interrupted, or the specified waiting time elapses.
boolean
Implements absolute timed condition wait.
boolean
Implements absolute timed condition wait.
boolean
Causes the current thread to wait until it is signalled or interrupted, or the specified deadline elapses.
void
Acquires the lock unless the current thread is interrupted.
void
Acquires the lock unless the current thread is interrupted.
void
Acquires the read lock unless the current thread is interrupted.
void
Acquires the write lock unless the current thread is interrupted.
boolean
AbstractQueuedSynchronizer.tryAcquireNanos(int arg, long nanosTimeout)
Attempts to acquire in exclusive mode, aborting if interrupted, and failing if the given timeout elapses.
boolean
AbstractQueuedLongSynchronizer.tryAcquireNanos(long arg, long nanosTimeout)
Attempts to acquire in exclusive mode, aborting if interrupted, and failing if the given timeout elapses.
boolean
Attempts to acquire in shared mode, aborting if interrupted, and failing if the given timeout elapses.
boolean
Attempts to acquire in shared mode, aborting if interrupted, and failing if the given timeout elapses.
boolean
Lock.tryLock(long time, TimeUnit unit)
Acquires the lock if it is free within the given waiting time and the current thread has not been interrupted.
boolean
ReentrantLock.tryLock(long timeout, TimeUnit unit)
Acquires the lock if it is not held by another thread within the given waiting time and the current thread has not been interrupted.
boolean
Acquires the read lock if the write lock is not held by another thread within the given waiting time and the current thread has not been interrupted.
boolean
Acquires the write lock if it is not held by another thread within the given waiting time and the current thread has not been interrupted.

Uses in package java.util.concurrent

Methods which throw type java.lang.InterruptedException

Executes the given tasks, returning a list of Futures holding their status and results when all complete.
Executes the given tasks, returning a list of Futures holding their status and results when all complete.
AbstractExecutorService.List> invokeAll(Callable> tasks, long timeout, TimeUnit unit)
Executes the given tasks, returning a list of Futures holding their status and results when all complete or the timeout expires, whichever happens first.
ExecutorService.List> invokeAll(Callable> tasks, long timeout, TimeUnit unit)
Executes the given tasks, returning a list of Futures holding their status and results when all complete or the timeout expires, whichever happens first.
Executes the given tasks, returning the result of one that has completed successfully (i.e., without throwing an exception), if any do.
ExecutorService.T invokeAny(Callable> tasks)
Executes the given tasks, returning the result of one that has completed successfully (i.e., without throwing an exception), if any do.
AbstractExecutorService.T invokeAny(Callable> tasks, long timeout, TimeUnit unit)
Executes the given tasks, returning the result of one that has completed successfully (i.e., without throwing an exception), if any do before the given timeout elapses.
ExecutorService.T invokeAny(Callable> tasks, long timeout, TimeUnit unit)
Executes the given tasks, returning the result of one that has completed successfully (i.e., without throwing an exception), if any do before the given timeout elapses.
void
Acquires a permit from this semaphore, blocking until one is available, or the thread is interrupted.
void
Semaphore.acquire(int permits)
Acquires the given number of permits from this semaphore, blocking until all are available, or the thread is interrupted.
void
Causes the current thread to wait until the latch has counted down to zero, unless the thread is interrupted.
int
Waits until all parties have invoked await on this barrier.
boolean
CountDownLatch.await(long timeout, TimeUnit unit)
Causes the current thread to wait until the latch has counted down to zero, unless the thread is interrupted, or the specified waiting time elapses.
int
CyclicBarrier.await(long timeout, TimeUnit unit)
Waits until all parties have invoked await on this barrier, or the specified waiting time elapses.
boolean
Blocks until all tasks have completed execution after a shutdown request, or the timeout occurs, or the current thread is interrupted, whichever happens first.
boolean
Blocks until all tasks have completed execution after a shutdown request, or the timeout occurs, or the current thread is interrupted, whichever happens first.
V
Waits for another thread to arrive at this exchange point (unless the current thread is interrupted), and then transfers the given object to it, receiving its object in return.
V
Exchanger<V>.exchange(V x, long timeout, TimeUnit unit)
Waits for another thread to arrive at this exchange point (unless the current thread is interrupted or the specified waiting time elapses), and then transfers the given object to it, receiving its object in return.
V
Waits if necessary for the computation to complete, and then retrieves its result.
V
V
Future<V>.get(long timeout, TimeUnit unit)
Waits if necessary for at most the given time for the computation to complete, and then retrieves its result, if available.
V
FutureTask<V>.get(long timeout, TimeUnit unit)
boolean
ArrayBlockingQueue<E>.offer(E e, long timeout, TimeUnit unit)
Inserts the specified element at the tail of this queue, waiting up to the specified wait time for space to become available if the queue is full.
boolean
BlockingDeque<E>.offer(E e, long timeout, TimeUnit unit)
Inserts the specified element into the queue represented by this deque (in other words, at the tail of this deque), waiting up to the specified wait time if necessary for space to become available.
boolean
BlockingQueue<E>.offer(E e, long timeout, TimeUnit unit)
Inserts the specified element into this queue, waiting up to the specified wait time if necessary for space to become available.
boolean
LinkedBlockingDeque<E>.offer(E e, long timeout, TimeUnit unit)
boolean
LinkedBlockingQueue<E>.offer(E e, long timeout, TimeUnit unit)
Inserts the specified element at the tail of this queue, waiting if necessary up to the specified wait time for space to become available.
boolean
SynchronousQueue<E>.offer(E o, long timeout, TimeUnit unit)
Inserts the specified element into this queue, waiting if necessary up to the specified wait time for another thread to receive it.
boolean
BlockingDeque<E>.offerFirst(E e, long timeout, TimeUnit unit)
Inserts the specified element at the front of this deque, waiting up to the specified wait time if necessary for space to become available.
boolean
LinkedBlockingDeque<E>.offerFirst(E e, long timeout, TimeUnit unit)
boolean
BlockingDeque<E>.offerLast(E e, long timeout, TimeUnit unit)
Inserts the specified element at the end of this deque, waiting up to the specified wait time if necessary for space to become available.
boolean
LinkedBlockingDeque<E>.offerLast(E e, long timeout, TimeUnit unit)
E
ArrayBlockingQueue<E>.poll(long timeout, TimeUnit unit)
E
BlockingDeque<E>.poll(long timeout, TimeUnit unit)
Retrieves and removes the head of the queue represented by this deque (in other words, the first element of this deque), waiting up to the specified wait time if necessary for an element to become available.
E
BlockingQueue<E>.poll(long timeout, TimeUnit unit)
Retrieves and removes the head of this queue, waiting up to the specified wait time if necessary for an element to become available.
Future
CompletionService<V>.poll(long timeout, TimeUnit unit)
Retrieves and removes the Future representing the next completed task, waiting if necessary up to the specified wait time if none are yet present.
E
Retrieves and removes the head of this queue, waiting if necessary until an element with an expired delay is available on this queue, or the specified wait time expires.
Future
Retrieves and removes the Future representing the next completed task, waiting if necessary up to the specified wait time if none are yet present.
E
LinkedBlockingDeque<E>.poll(long timeout, TimeUnit unit)
E
LinkedBlockingQueue<E>.poll(long timeout, TimeUnit unit)
E
PriorityBlockingQueue<E>.poll(long timeout, TimeUnit unit)
Retrieves and removes the head of this queue, waiting up to the specified wait time if necessary for an element to become available.
E
SynchronousQueue<E>.poll(long timeout, TimeUnit unit)
Retrieves and removes the head of this queue, waiting if necessary up to the specified wait time, for another thread to insert it.
E
BlockingDeque<E>.pollFirst(long timeout, TimeUnit unit)
Retrieves and removes the first element of this deque, waiting up to the specified wait time if necessary for an element to become available.
E
E
BlockingDeque<E>.pollLast(long timeout, TimeUnit unit)
Retrieves and removes the last element of this deque, waiting up to the specified wait time if necessary for an element to become available.
E
void
Inserts the specified element at the tail of this queue, waiting for space to become available if the queue is full.
void
Inserts the specified element into the queue represented by this deque (in other words, at the tail of this deque), waiting if necessary for space to become available.
void
Inserts the specified element into this queue, waiting if necessary for space to become available.
void
void
Inserts the specified element at the tail of this queue, waiting if necessary for space to become available.
void
Adds the specified element to this queue, waiting if necessary for another thread to receive it.
void
Inserts the specified element at the front of this deque, waiting if necessary for space to become available.
void
void
Inserts the specified element at the end of this deque, waiting if necessary for space to become available.
void
E
E
Retrieves and removes the head of the queue represented by this deque (in other words, the first element of this deque), waiting if necessary until an element becomes available.
E
Retrieves and removes the head of this queue, waiting if necessary until an element becomes available.
Future
Retrieves and removes the Future representing the next completed task, waiting if none are yet present.
E
Retrieves and removes the head of this queue, waiting if necessary until an element with an expired delay is available on this queue.
Future
Retrieves and removes the Future representing the next completed task, waiting if none are yet present.
E
E
E
Retrieves and removes the head of this queue, waiting if necessary until an element becomes available.
E
Retrieves and removes the head of this queue, waiting if necessary for another thread to insert it.
E
Retrieves and removes the first element of this deque, waiting if necessary until an element becomes available.
E
E
Retrieves and removes the last element of this deque, waiting if necessary until an element becomes available.
E
boolean
Semaphore.tryAcquire(int permits, long timeout, TimeUnit unit)
Acquires the given number of permits from this semaphore, if all become available within the given waiting time and the current thread has not been interrupted.
boolean
Semaphore.tryAcquire(long timeout, TimeUnit unit)
Acquires a permit from this semaphore, if one becomes available within the given waiting time and the current thread has not been interrupted.

Uses in package javax.swing

Methods which throw type java.lang.InterruptedException

void
Calls EventQueue.invokeAndWait(Runnable) with the specified Runnable.

Uses in package java.awt

Methods which throw type java.lang.InterruptedException

AWTEvent
Returns the next event in the queue.
void
Causes runnable to have its run method called in the dispatch thread of the EventQueue.
void
Waits for all media objects to finish loading, either by completing successfully or by aborting or encountering an error.
boolean
Waits for all media objects to finish loading, either by completing successfully or by aborting or encountering an error.
void
Waits for all media objects with the specified ID to finish loading, either by completing successfully or by aborting or encountering an error.
boolean
MediaTracker.waitForID(int id, long ms)
Waits for all media objects with the specified ID to finish loading, either by completing successfully or by aborting or encountering an error.

Uses in package java.lang

Methods which throw type java.lang.InterruptedException

void
Wait forever for the Thread in question to die.
void
Thread.join(long ms)
Wait the specified amount of time for the Thread in question to die.
void
Thread.join(long ms, int ns)
Wait the specified amount of time for the Thread in question to die.
void
Thread.sleep(long ms)
Suspend the current Thread's execution for the specified amount of time.
void
Thread.sleep(long ms, int ns)
Suspend the current Thread's execution for the specified amount of time.
void
Waits indefinitely for notify() or notifyAll() to be called on the Object in question.
void
Object.wait(long ms)
Waits a specified amount of time (or indefinitely if the time specified is 0) for someone to call notify() or notifyAll() on this Object, waking up this Thread.
void
Object.wait(long ms, int ns)
Waits a specified amount of time (or indefinitely if the time specified is 0) for someone to call notify() or notifyAll() on this Object, waking up this Thread.
int
The thread calling waitFor will block until the subprocess has terminated.

Uses in package java.awt.image

Methods which throw type java.lang.InterruptedException

boolean
Have our Image or ImageProducer start sending us pixels via our ImageConsumer methods and wait for all pixels in the grab rectangle to be delivered.
boolean
grabPixels's behavior depends on the value of ms.