|
FlexDoc/Javadoc 2.0 Demo Java Doc |
Packages that use InterruptedException |
|
Provides classes that are fundamental to the design of the Java
programming language.
|
|
Utility classes commonly useful in concurrent programming.
|
Uses of InterruptedException in java.lang |
Methods in java.lang that throw InterruptedException |
|
final void |
Object.wait()
Causes the current thread to wait until it is awakened, typically
by being notified or interrupted.
|
final void |
Object.wait(long timeoutMillis)
Causes the current thread to wait until it is awakened, typically
by being notified or interrupted, or until a
certain amount of real time has elapsed.
|
final void |
Object.wait(long timeoutMillis, int nanos)
Causes the current thread to wait until it is awakened, typically
by being notified or interrupted, or until a
certain amount of real time has elapsed.
|
abstract int |
Process.waitFor()
Causes the current thread to wait, if necessary, until the
process represented by this Process object has
terminated.
|
boolean |
Causes the current thread to wait, if necessary, until the
process represented by this Process object has
terminated, or the specified waiting time elapses.
|
final void |
Thread.join()
Waits for this thread to die.
|
final void |
Thread.join(long millis)
Waits at most millis milliseconds for this thread to
die.
|
final void |
Thread.join(long millis, int nanos)
Waits at most millis milliseconds plus
nanos nanoseconds for this thread to die.
|
static void |
Thread.sleep(long millis)
Causes the currently executing thread to sleep (temporarily cease
execution) for the specified number of milliseconds, subject to
the precision and accuracy of system timers and schedulers.
|
static void |
Thread.sleep(long millis, int nanos)
Causes the currently executing thread to sleep (temporarily cease
execution) for the specified number of milliseconds plus the specified
number of nanoseconds, subject to the precision and accuracy of system
timers and schedulers.
|
Uses of InterruptedException in java.util.concurrent |
Methods in java.util.concurrent that throw InterruptedException |
|
Executes the given tasks, returning a list of Futures holding
their status and results when all complete.
|
|
AbstractExecutorService.invokeAll(Collection<? extends Callable<T>> 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.
|
|
AbstractExecutorService.invokeAny(Collection<? extends Callable<T>> 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.
|
|
boolean |
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.
|
Retrieves and removes the head of this queue, waiting up to the
specified wait time if necessary for an element to become available.
|
|
void |
Inserts the specified element at the tail of this queue, waiting
for space to become available if the queue is full.
|
ArrayBlockingQueue.take()
Retrieves and removes the head of this queue, waiting if necessary
until an element becomes available.
|
|
boolean |
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 |
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 |
Inserts the specified element at the end of this deque,
waiting up to the specified wait time if necessary for space to
become available.
|
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.
|
|
Retrieves and removes the first element of this deque, waiting
up to the specified wait time if necessary for an element to
become available.
|
|
Retrieves and removes the last element of this deque, waiting
up to the specified wait time if necessary for an element to
become available.
|
|
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 at the front of this deque,
waiting if necessary for space to become available.
|
void |
Inserts the specified element at the end of this deque,
waiting if necessary for space to become available.
|
BlockingDeque.take()
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.
|
|
BlockingDeque.takeFirst()
Retrieves and removes the first element of this deque, waiting
if necessary until an element becomes available.
|
|
BlockingDeque.takeLast()
Retrieves and removes the last element of this deque, waiting
if necessary until an element becomes available.
|
|
boolean |
Inserts the specified element into this queue, waiting up to the
specified wait time if necessary for space to become available.
|
Retrieves and removes the head of this queue, waiting up to the
specified wait time if necessary for an element to become available.
|
|
void |
Inserts the specified element into this queue, waiting if necessary
for space to become available.
|
BlockingQueue.take()
Retrieves and removes the head of this queue, waiting if necessary
until an element becomes available.
|
|
CompletableFuture.get()
Waits if necessary for this future to complete, and then
returns its result.
|
|
Waits if necessary for at most the given time for this future
to complete, and then returns its result, if available.
|
|
Retrieves and removes the Future representing the next
completed task, waiting if necessary up to the specified wait
time if none are yet present.
|
|
CompletionService.take()
Retrieves and removes the Future representing the next
completed task, waiting if none are yet present.
|
|
void |
CountDownLatch.await()
Causes the current thread to wait until the latch has counted down to
zero, unless the thread is interrupted.
|
boolean |
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()
Waits until all parties have invoked
await on this barrier.
|
int |
Waits until all parties have invoked
await on this barrier, or the specified waiting time elapses.
|
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.
|
|
DelayQueue.take()
Retrieves and removes the head of this queue, waiting if necessary
until an element with an expired delay is available on this queue.
|
|
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.
|
|
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.
|
|
Retrieves and removes the Future representing the next
completed task, waiting if necessary up to the specified wait
time if none are yet present.
|
|
ExecutorCompletionService.take()
Retrieves and removes the Future representing the next
completed task, waiting if none are yet present.
|
|
boolean |
ExecutorService.awaitTermination(long timeout, TimeUnit unit)
Blocks until all tasks have completed execution after a shutdown
request, or the timeout occurs, or the current thread is
interrupted, whichever happens first.
|
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 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.
|
|
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.
|
|
boolean |
ForkJoinPool.awaitTermination(long timeout, TimeUnit unit)
Blocks until all tasks have completed execution after a
shutdown request, or the timeout occurs, or the current thread
is interrupted, whichever happens first.
|
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.
|
|
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.
|
|
static void |
ForkJoinPool.managedBlock(ForkJoinPool.ManagedBlocker blocker)
Runs the given possibly blocking task.
|
boolean |
ForkJoinPool.ManagedBlocker.block()
Possibly blocks the current thread, for example waiting for
a lock or condition.
|
final V |
ForkJoinTask.get()
Waits if necessary for the computation to complete, and then
retrieves its result.
|
final V |
Waits if necessary for at most the given time for the computation
to complete, and then retrieves its result, if available.
|
Future.get()
Waits if necessary for the computation to complete, and then
retrieves its result.
|
|
Waits if necessary for at most the given time for the computation
to complete, and then retrieves its result, if available.
|
|
FutureTask.get()
Waits if necessary for the computation to complete, and then
retrieves its result.
|
|
Waits if necessary for at most the given time for the computation
to complete, and then retrieves its result, if available.
|
|
boolean |
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 |
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 |
Inserts the specified element at the end of this deque,
waiting up to the specified wait time if necessary for space to
become available.
|
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.
|
|
Retrieves and removes the first element of this deque, waiting
up to the specified wait time if necessary for an element to
become available.
|
|
Retrieves and removes the last element of this deque, waiting
up to the specified wait time if necessary for an element to
become available.
|
|
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 at the front of this deque,
waiting if necessary for space to become available.
|
void |
Inserts the specified element at the end of this deque,
waiting if necessary for space to become available.
|
LinkedBlockingDeque.take()
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.
|
|
LinkedBlockingDeque.takeFirst()
Retrieves and removes the first element of this deque, waiting
if necessary until an element becomes available.
|
|
LinkedBlockingDeque.takeLast()
Retrieves and removes the last element of this deque, waiting
if necessary until an element becomes available.
|
|
boolean |
Inserts the specified element at the tail of this queue, waiting if
necessary up to the specified wait time for space to become available.
|
Retrieves and removes the head of this queue, waiting up to the
specified wait time if necessary for an element to become available.
|
|
void |
Inserts the specified element at the tail of this queue, waiting if
necessary for space to become available.
|
LinkedBlockingQueue.take()
Retrieves and removes the head of this queue, waiting if necessary
until an element becomes available.
|
|
Retrieves and removes the head of this queue, waiting up to the
specified wait time if necessary for an element to become available.
|
|
LinkedTransferQueue.take()
Retrieves and removes the head of this queue, waiting if necessary
until an element becomes available.
|
|
void |
Transfers the element to a consumer, waiting if necessary to do so.
|
boolean |
Transfers the element to a consumer if it is possible to do so
before the timeout elapses.
|
int |
Phaser.awaitAdvanceInterruptibly(int phase)
Awaits the phase of this phaser to advance from the given phase
value, throwing InterruptedException if interrupted
while waiting, or returning immediately if the current phase is
not equal to the given phase value or this phaser is
terminated.
|
int |
Phaser.awaitAdvanceInterruptibly(int phase, long timeout, TimeUnit unit)
Awaits the phase of this phaser to advance from the given phase
value or the given timeout to elapse, throwing
InterruptedException if interrupted while waiting, or
returning immediately if the current phase is not equal to the
given phase value or this phaser is terminated.
|
Retrieves and removes the head of this queue, waiting up to the
specified wait time if necessary for an element to become available.
|
|
PriorityBlockingQueue.take()
Retrieves and removes the head of this queue, waiting if necessary
until an element becomes available.
|
|
void |
Semaphore.acquire()
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.
|
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.
|
boolean |
Inserts the specified element into this queue, waiting if necessary
up to the specified wait time for another thread to receive it.
|
Retrieves and removes the head of this queue, waiting
if necessary up to the specified wait time, for another thread
to insert it.
|
|
void |
Adds the specified element to this queue, waiting if necessary for
another thread to receive it.
|
SynchronousQueue.take()
Retrieves and removes the head of this queue, waiting if necessary
for another thread to insert it.
|
|
boolean |
ThreadPoolExecutor.awaitTermination(long timeout, TimeUnit unit)
Blocks until all tasks have completed execution after a shutdown
request, or the timeout occurs, or the current thread is
interrupted, whichever happens first.
|
void |
TimeUnit.sleep(long timeout)
Performs a Thread.sleep using
this time unit.
|
void |
Performs a timed Thread.join
using this time unit.
|
void |
Performs a timed Object.wait
using this time unit.
|
void |
Transfers the element to a consumer, waiting if necessary to do so.
|
boolean |
Transfers the element to a consumer if it is possible to do so
before the timeout elapses.
|
|
FlexDoc/Javadoc 2.0 Demo Java Doc |