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.RunnableUsing 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 privateBlocker(InterruptibleTask<?> task)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidrun()private voidsetOwner(java.lang.Thread thread)java.lang.StringtoString()
-
-
-
Field Detail
-
task
private final InterruptibleTask<?> task
-
-
Constructor Detail
-
Blocker
private Blocker(InterruptibleTask<?> task)
-
-