Class InterruptibleTask
- java.lang.Object
-
- com.google.common.util.concurrent.InterruptibleTask
-
- All Implemented Interfaces:
java.lang.Runnable
- Direct Known Subclasses:
CombinedFuture.CombinedFutureInterruptibleTask,TrustedListenableFutureTask.TrustedFutureInterruptibleTask
@GwtCompatible(emulated=true) abstract class InterruptibleTask extends java.lang.Object implements java.lang.Runnable
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description private static classInterruptibleTask.AtomicHelperprivate static classInterruptibleTask.SafeAtomicHelperprivate static classInterruptibleTask.SynchronizedAtomicHelper
-
Field Summary
Fields Modifier and Type Field Description private static InterruptibleTask.AtomicHelperATOMIC_HELPERprivate booleandoneInterruptingprivate static java.util.logging.Loggerlogprivate java.lang.Threadrunner
-
Constructor Summary
Constructors Constructor Description InterruptibleTask()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description (package private) voidinterruptTask()voidrun()(package private) abstract voidrunInterruptibly()(package private) abstract booleanwasInterrupted()
-
-
-
Field Detail
-
runner
private volatile java.lang.Thread runner
-
doneInterrupting
private volatile boolean doneInterrupting
-
ATOMIC_HELPER
private static final InterruptibleTask.AtomicHelper ATOMIC_HELPER
-
log
private static final java.util.logging.Logger log
-
-