Uses of Class
java.lang.InterruptedException
| Package | Description |
|---|---|
| com.squareup.okhttp.internal.spdy | |
| java.lang | |
| java.lang.ref | |
| java.util.concurrent |
Utility classes commonly useful in concurrent programming.
|
| java.util.concurrent.locks |
Interfaces and classes providing a framework for locking and waiting
for conditions that is distinct from built-in synchronization and
monitors.
|
| org.apache.http.conn |
The client-side connection management and handling API
at the heart of what is referred to as HttpConn.
|
| org.apache.http.impl.conn.tsccm |
The implementation of a thread-safe client connection manager.
|
| org.apache.xml.utils |
Implementation of Xalan utility classes.
|
-
Uses of InterruptedException in com.squareup.okhttp.internal.spdy
Methods in com.squareup.okhttp.internal.spdy that throw InterruptedException Modifier and Type Method Description longPing. roundTripTime()Returns the round trip time for this ping in nanoseconds, waiting for the response to arrive if necessary.longPing. roundTripTime(long timeout, TimeUnit unit)Returns the round trip time for this ping in nanoseconds, or -1 if the response was cancelled, or -2 if the timeout elapsed before the round trip completed. -
Uses of InterruptedException in java.lang
Methods in java.lang that throw InterruptedException Modifier and Type Method Description voidThread. join()Blocks the current Thread (Thread.currentThread()) until the receiver finishes its execution and dies.voidThread. join(long millis)Blocks the current Thread (Thread.currentThread()) until the receiver finishes its execution and dies or the specified timeout expires, whatever happens first.voidThread. join(long millis, int nanos)Blocks the current Thread (Thread.currentThread()) until the receiver finishes its execution and dies or the specified timeout expires, whatever happens first.static voidThread. sleep(long time)Causes the thread which sent this message to sleep for the given interval of time (given in milliseconds).static voidThread. sleep(long millis, int nanos)Causes the thread which sent this message to sleep for the given interval of time (given in milliseconds and nanoseconds).voidObject. wait()Causes the calling thread to wait until another thread calls thenotify()ornotifyAll()method of this object.voidObject. wait(long millis)Causes the calling thread to wait until another thread calls thenotify()ornotifyAll()method of this object or until the specified timeout expires.voidObject. wait(long millis, int nanos)Causes the calling thread to wait until another thread calls thenotify()ornotifyAll()method of this object or until the specified timeout expires.abstract intProcess. waitFor()Causes the calling thread to wait for the native process associated with this object to finish executing. -
Uses of InterruptedException in java.lang.ref
Methods in java.lang.ref that throw InterruptedException Modifier and Type Method Description static voidFinalizerReference. finalizeAllEnqueued()Waits for all currently-enqueued references to be finalized.Reference<? extends T>ReferenceQueue. remove()Returns the next available reference from the queue, removing it in the process.Reference<? extends T>ReferenceQueue. remove(long timeoutMillis)Returns the next available reference from the queue, removing it in the process. -
Uses of InterruptedException in java.util.concurrent
Methods in java.util.concurrent that throw InterruptedException Modifier and Type Method Description voidSemaphore. acquire()Acquires a permit from this semaphore, blocking until one is available, or the thread is interrupted.voidSemaphore. acquire(int permits)Acquires the given number of permits from this semaphore, blocking until all are available, or the thread is interrupted.voidCountDownLatch. await()Causes the current thread to wait until the latch has counted down to zero, unless the thread is interrupted.booleanCountDownLatch. 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.intCyclicBarrier. await()Waits until all parties have invokedawaiton this barrier.intCyclicBarrier. await(long timeout, TimeUnit unit)Waits until all parties have invokedawaiton this barrier, or the specified waiting time elapses.intPhaser. awaitAdvanceInterruptibly(int phase)Awaits the phase of this phaser to advance from the given phase value, throwingInterruptedExceptionif interrupted while waiting, or returning immediately if the current phase is not equal to the given phase value or this phaser is terminated.intPhaser. 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, throwingInterruptedExceptionif interrupted while waiting, or returning immediately if the current phase is not equal to the given phase value or this phaser is terminated.booleanExecutorService. 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.booleanForkJoinPool. 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.booleanThreadPoolExecutor. awaitTermination(long timeout, TimeUnit unit)booleanForkJoinPool.ManagedBlocker. block()Possibly blocks the current thread, for example waiting for a lock or condition.VExchanger. exchange(V x)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.VExchanger. 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.VForkJoinTask. get()Waits if necessary for the computation to complete, and then retrieves its result.VForkJoinTask. 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.VFuture. get()Waits if necessary for the computation to complete, and then retrieves its result.VFuture. 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.VFutureTask. get()VFutureTask. get(long timeout, TimeUnit unit)<T> List<Future<T>>AbstractExecutorService. invokeAll(Collection<? extends Callable<T>> tasks)<T> List<Future<T>>AbstractExecutorService. invokeAll(Collection<? extends Callable<T>> tasks, long timeout, TimeUnit unit)<T> List<Future<T>>ExecutorService. invokeAll(Collection<? extends Callable<T>> tasks)Executes the given tasks, returning a list of Futures holding their status and results when all complete.<T> List<Future<T>>ExecutorService. 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.<T> TAbstractExecutorService. invokeAny(Collection<? extends Callable<T>> tasks)<T> TAbstractExecutorService. invokeAny(Collection<? extends Callable<T>> tasks, long timeout, TimeUnit unit)<T> TExecutorService. invokeAny(Collection<? extends Callable<T>> tasks)Executes the given tasks, returning the result of one that has completed successfully (i.e., without throwing an exception), if any do.<T> TExecutorService. 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.static voidForkJoinPool. managedBlock(ForkJoinPool.ManagedBlocker blocker)Blocks in accord with the given blocker.booleanArrayBlockingQueue. 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.booleanBlockingDeque. 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.booleanBlockingQueue. 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.booleanLinkedBlockingDeque. offer(E e, long timeout, TimeUnit unit)booleanLinkedBlockingQueue. 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.booleanSynchronousQueue. offer(E e, 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.booleanBlockingDeque. 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.booleanLinkedBlockingDeque. offerFirst(E e, long timeout, TimeUnit unit)booleanBlockingDeque. 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.booleanLinkedBlockingDeque. offerLast(E e, long timeout, TimeUnit unit)EArrayBlockingQueue. poll(long timeout, TimeUnit unit)EBlockingDeque. 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.EBlockingQueue. 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<V>CompletionService. 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.EDelayQueue. poll(long timeout, TimeUnit unit)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<V>ExecutorCompletionService. poll(long timeout, TimeUnit unit)ELinkedBlockingDeque. poll(long timeout, TimeUnit unit)ELinkedBlockingQueue. poll(long timeout, TimeUnit unit)ELinkedTransferQueue. poll(long timeout, TimeUnit unit)EPriorityBlockingQueue. poll(long timeout, TimeUnit unit)ESynchronousQueue. 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.EBlockingDeque. 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.ELinkedBlockingDeque. pollFirst(long timeout, TimeUnit unit)EBlockingDeque. 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.ELinkedBlockingDeque. pollLast(long timeout, TimeUnit unit)voidArrayBlockingQueue. put(E e)Inserts the specified element at the tail of this queue, waiting for space to become available if the queue is full.voidBlockingDeque. put(E e)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.voidBlockingQueue. put(E e)Inserts the specified element into this queue, waiting if necessary for space to become available.voidLinkedBlockingDeque. put(E e)voidLinkedBlockingQueue. put(E e)Inserts the specified element at the tail of this queue, waiting if necessary for space to become available.voidSynchronousQueue. put(E e)Adds the specified element to this queue, waiting if necessary for another thread to receive it.voidBlockingDeque. putFirst(E e)Inserts the specified element at the front of this deque, waiting if necessary for space to become available.voidLinkedBlockingDeque. putFirst(E e)voidBlockingDeque. putLast(E e)Inserts the specified element at the end of this deque, waiting if necessary for space to become available.voidLinkedBlockingDeque. putLast(E e)voidTimeUnit. sleep(long timeout)Performs aThread.sleepusing this time unit.EArrayBlockingQueue. take()EBlockingDeque. 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.EBlockingQueue. take()Retrieves and removes the head of this queue, waiting if necessary until an element becomes available.Future<V>CompletionService. take()Retrieves and removes the Future representing the next completed task, waiting if none are yet present.EDelayQueue. take()Retrieves and removes the head of this queue, waiting if necessary until an element with an expired delay is available on this queue.Future<V>ExecutorCompletionService. take()ELinkedBlockingDeque. take()ELinkedBlockingQueue. take()ELinkedTransferQueue. take()EPriorityBlockingQueue. take()ESynchronousQueue. take()Retrieves and removes the head of this queue, waiting if necessary for another thread to insert it.EBlockingDeque. takeFirst()Retrieves and removes the first element of this deque, waiting if necessary until an element becomes available.ELinkedBlockingDeque. takeFirst()EBlockingDeque. takeLast()Retrieves and removes the last element of this deque, waiting if necessary until an element becomes available.ELinkedBlockingDeque. takeLast()voidTimeUnit. timedJoin(Thread thread, long timeout)Performs a timedThread.joinusing this time unit.voidTimeUnit. timedWait(Object obj, long timeout)Performs a timedObject.waitusing this time unit.voidLinkedTransferQueue. transfer(E e)Transfers the element to a consumer, waiting if necessary to do so.voidTransferQueue. transfer(E e)Transfers the element to a consumer, waiting if necessary to do so.booleanSemaphore. 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.booleanSemaphore. 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.booleanLinkedTransferQueue. tryTransfer(E e, long timeout, TimeUnit unit)Transfers the element to a consumer if it is possible to do so before the timeout elapses.booleanTransferQueue. tryTransfer(E e, long timeout, TimeUnit unit)Transfers the element to a consumer if it is possible to do so before the timeout elapses. -
Uses of InterruptedException in java.util.concurrent.locks
Methods in java.util.concurrent.locks that throw InterruptedException Modifier and Type Method Description voidAbstractQueuedLongSynchronizer. acquireInterruptibly(long arg)Acquires in exclusive mode, aborting if interrupted.voidAbstractQueuedSynchronizer. acquireInterruptibly(int arg)Acquires in exclusive mode, aborting if interrupted.voidAbstractQueuedLongSynchronizer. acquireSharedInterruptibly(long arg)Acquires in shared mode, aborting if interrupted.voidAbstractQueuedSynchronizer. acquireSharedInterruptibly(int arg)Acquires in shared mode, aborting if interrupted.voidAbstractQueuedLongSynchronizer.ConditionObject. await()Implements interruptible condition wait.booleanAbstractQueuedLongSynchronizer.ConditionObject. await(long time, TimeUnit unit)Implements timed condition wait.voidAbstractQueuedSynchronizer.ConditionObject. await()Implements interruptible condition wait.booleanAbstractQueuedSynchronizer.ConditionObject. await(long time, TimeUnit unit)Implements timed condition wait.voidCondition. await()Causes the current thread to wait until it is signalled or interrupted.booleanCondition. await(long time, TimeUnit unit)Causes the current thread to wait until it is signalled or interrupted, or the specified waiting time elapses.longAbstractQueuedLongSynchronizer.ConditionObject. awaitNanos(long nanosTimeout)Implements timed condition wait.longAbstractQueuedSynchronizer.ConditionObject. awaitNanos(long nanosTimeout)Implements timed condition wait.longCondition. awaitNanos(long nanosTimeout)Causes the current thread to wait until it is signalled or interrupted, or the specified waiting time elapses.booleanAbstractQueuedLongSynchronizer.ConditionObject. awaitUntil(Date deadline)Implements absolute timed condition wait.booleanAbstractQueuedSynchronizer.ConditionObject. awaitUntil(Date deadline)Implements absolute timed condition wait.booleanCondition. awaitUntil(Date deadline)Causes the current thread to wait until it is signalled or interrupted, or the specified deadline elapses.voidLock. lockInterruptibly()Acquires the lock unless the current thread is interrupted.voidReentrantLock. lockInterruptibly()Acquires the lock unless the current thread is interrupted.voidReentrantReadWriteLock.ReadLock. lockInterruptibly()Acquires the read lock unless the current thread is interrupted.voidReentrantReadWriteLock.WriteLock. lockInterruptibly()Acquires the write lock unless the current thread is interrupted.booleanAbstractQueuedLongSynchronizer. tryAcquireNanos(long arg, long nanosTimeout)Attempts to acquire in exclusive mode, aborting if interrupted, and failing if the given timeout elapses.booleanAbstractQueuedSynchronizer. tryAcquireNanos(int arg, long nanosTimeout)Attempts to acquire in exclusive mode, aborting if interrupted, and failing if the given timeout elapses.booleanAbstractQueuedLongSynchronizer. tryAcquireSharedNanos(long arg, long nanosTimeout)Attempts to acquire in shared mode, aborting if interrupted, and failing if the given timeout elapses.booleanAbstractQueuedSynchronizer. tryAcquireSharedNanos(int arg, long nanosTimeout)Attempts to acquire in shared mode, aborting if interrupted, and failing if the given timeout elapses.booleanLock. 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.booleanReentrantLock. 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.booleanReentrantReadWriteLock.ReadLock. tryLock(long timeout, TimeUnit unit)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.booleanReentrantReadWriteLock.WriteLock. tryLock(long timeout, TimeUnit unit)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 of InterruptedException in org.apache.http.conn
Methods in org.apache.http.conn that throw InterruptedException Modifier and Type Method Description ManagedClientConnectionClientConnectionRequest. getConnection(long timeout, TimeUnit tunit)Obtains a connection within a given time. -
Uses of InterruptedException in org.apache.http.impl.conn.tsccm
Methods in org.apache.http.impl.conn.tsccm that throw InterruptedException Modifier and Type Method Description booleanWaitingThread. await(Date deadline)Blocks the calling thread.BasicPoolEntryAbstractConnPool. getEntry(HttpRoute route, Object state, long timeout, TimeUnit tunit)Obtains a pool entry with a connection within the given timeout.protected BasicPoolEntryConnPoolByRoute. getEntryBlocking(HttpRoute route, Object state, long timeout, TimeUnit tunit, WaitingThreadAborter aborter)Obtains a pool entry with a connection within the given timeout.BasicPoolEntryPoolEntryRequest. getPoolEntry(long timeout, TimeUnit tunit)Obtains a pool entry with a connection within the given timeout. -
Uses of InterruptedException in org.apache.xml.utils
Methods in org.apache.xml.utils that throw InterruptedException Modifier and Type Method Description voidThreadControllerWrapper.ThreadController. waitThread(Thread worker, Runnable task)Wait until the task is completed on the worker thread.static voidThreadControllerWrapper. waitThread(Thread worker, Runnable task)