Package org.cometd.bayeux
Class MarkedReference<T>
java.lang.Object
org.cometd.bayeux.MarkedReference<T>
- Type Parameters:
T
- the type of the reference
public class MarkedReference<T> extends Object
Immutable, non-volatile, non-atomic version of
AtomicMarkableReference
.-
Constructor Summary
Constructors Constructor Description MarkedReference(T reference, boolean marked)
-
Method Summary
Modifier and Type Method Description static <S> MarkedReference<S>
empty()
T
getReference()
boolean
isMarked()
-
Constructor Details
-
Method Details
-
empty
- Type Parameters:
S
- the type of the null reference- Returns:
- a null-reference, non-marked instance
-
getReference
-
isMarked
public boolean isMarked()
-