Class InterruptibleTask.Blocker
- java.lang.Object
-
- java.util.concurrent.locks.AbstractOwnableSynchronizer
-
- com.google.common.util.concurrent.InterruptibleTask.Blocker
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Runnable
- Enclosing class:
- InterruptibleTask<T>
static final class InterruptibleTask.Blocker extends java.util.concurrent.locks.AbstractOwnableSynchronizer implements java.lang.Runnable
Using this as the blocker object allows introspection and debugging tools to see that the currentRunner thread is blocked on the progress of the interruptor thread, which can help identify deadlocks.
-
-
Field Summary
Fields Modifier and Type Field Description private InterruptibleTask<?>
task
-
Constructor Summary
Constructors Modifier Constructor Description private
Blocker(InterruptibleTask<?> task)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
run()
private void
setOwner(java.lang.Thread thread)
java.lang.String
toString()
-
-
-
Field Detail
-
task
private final InterruptibleTask<?> task
-
-
Constructor Detail
-
Blocker
private Blocker(InterruptibleTask<?> task)
-
-