Searched defs:cancel (Results 1 - 13 of 13) sorted by relevance

/libcore/luni/src/main/java/java/nio/channels/spi/
H A DAbstractSelectionKey.java57 public final void cancel() { method in class:AbstractSelectionKey
60 ((AbstractSelector) selector()).cancel(this);
H A DAbstractSelector.java126 void cancel(SelectionKey key) { method in class:AbstractSelector
/libcore/luni/src/main/java/java/util/
H A DTimerTask.java91 public boolean cancel() { method in class:TimerTask
H A DTimer.java44 * <p>When a timer is no longer needed, users should call {@link #cancel}, which
167 * True if the method cancel() of the Timer was called or the !!!stop()
305 public synchronized void cancel() { method in class:Timer.TimerImpl
399 public void cancel() { method in class:Timer
400 impl.cancel();
/libcore/luni/src/main/java/java/util/concurrent/
H A DFuture.java16 * {@code cancel} method. Additional methods are provided to
70 * Attempts to cancel execution of this task. This attempt will
73 * and this task has not started when {@code cancel} is called,
90 boolean cancel(boolean mayInterruptIfRunning); method in interface:Future
H A DFutureTask.java12 * implementation of {@link Future}, with methods to start and cancel
50 * setException, and cancel. During completion, state may take on
53 * cancel(true)). Transitions from these intermediate to final
135 public boolean cancel(boolean mayInterruptIfRunning) { method in class:FutureTask
299 * Ensures that any interrupt from a possible cancel(true) is only
312 // cancel(true). However, it is permissible to use interrupts
H A DForkJoinTask.java468 * Cancels, ignoring any exceptions thrown by cancel. Used during
476 t.cancel(false);
758 t.cancel(false);
809 t.cancel(false);
820 * Attempts to cancel execution of this task. This attempt will
823 * has not started when {@code cancel} is called, execution of
827 * {@link #isDone}, and {@code cancel} will return {@code true}
833 * {@code cancel} method itself must not throw exceptions.
846 public boolean cancel(boolean mayInterruptIfRunning) { method in class:ForkJoinTask
H A DScheduledThreadPoolExecutor.java113 * leads to overrides of shutdown methods to remove and cancel
125 * False if should cancel/suppress periodic tasks on shutdown.
130 * False if should cancel non-periodic tasks on shutdown.
135 * True if ScheduledFutureTask.cancel should remove from queue
250 public boolean cancel(boolean mayInterruptIfRunning) { method in class:ScheduledThreadPoolExecutor.ScheduledFutureTask
251 boolean cancelled = super.cancel(mayInterruptIfRunning);
263 cancel(false);
291 * is being added, cancel and remove it if required by state and
304 task.cancel(false);
320 task.cancel(fals
[all...]
/libcore/luni/src/main/java/java/nio/channels/
H A DSelectionKey.java103 public abstract void cancel(); method in class:SelectionKey
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/nio/channels/
H A DSelectionKeyTest.java51 selectionKey.cancel();
65 public void cancel() { method in class:SelectionKeyTest.MockSelectionKey
129 selectionKey.cancel();
180 selectionKey.cancel();
241 * @tests java.nio.channels.SelectionKey#cancel()
244 selectionKey.cancel();
315 selectionKey.cancel();
/libcore/luni/src/main/java/java/sql/
H A DStatement.java104 public void cancel() throws SQLException; method in interface:Statement
/libcore/jsr166-tests/src/test/java/jsr166/
H A DScheduledExecutorSubclassTest.java30 public boolean cancel(boolean mayInterruptIfRunning) { method in class:ScheduledExecutorSubclassTest.CustomTask
31 return task.cancel(mayInterruptIfRunning);
152 f.cancel(true);
176 f.cancel(true);
196 h.cancel(true);
214 h.cancel(true);
641 if (tasks[4].cancel(true)) --max;
642 if (tasks[3].cancel(true)) --max;
655 task.cancel(true);
782 assertTrue(task.cancel(fals
[all...]
H A DThreadPoolExecutorSubclassTest.java44 public boolean cancel(boolean mayInterrupt) { method in class:ThreadPoolExecutorSubclassTest.CustomTask
660 tasks[4].cancel(true);
661 tasks[3].cancel(false);

Completed in 271 milliseconds