Package org.logicalcobwebs.concurrent
Class FJTaskRunner.VolatileTaskRef
- java.lang.Object
-
- org.logicalcobwebs.concurrent.FJTaskRunner.VolatileTaskRef
-
- Enclosing class:
- FJTaskRunner
protected static final class FJTaskRunner.VolatileTaskRef extends java.lang.Object
An object holding a single volatile reference to a FJTask.
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
VolatileTaskRef()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description protected FJTask
get()
Return the referenceprotected static FJTaskRunner.VolatileTaskRef[]
newArray(int cap)
Initialization utility for constructing arrays.protected void
put(FJTask r)
Set the referenceprotected FJTask
take()
Return the reference and clear it
-
-
-
Field Detail
-
ref
protected volatile FJTask ref
The reference
-
-
Method Detail
-
put
protected final void put(FJTask r)
Set the reference
-
get
protected final FJTask get()
Return the reference
-
take
protected final FJTask take()
Return the reference and clear it
-
newArray
protected static FJTaskRunner.VolatileTaskRef[] newArray(int cap)
Initialization utility for constructing arrays. Make an array of given capacity and fill it with VolatileTaskRefs.
-
-