Package io.pravega.common.concurrent
Class NewestReference<T extends java.lang.Comparable<T>>
- java.lang.Object
-
- io.pravega.common.concurrent.NewestReference<T>
-
public final class NewestReference<T extends java.lang.Comparable<T>> extends java.lang.ObjectKeeps the largest value in a thread safe way. Analogous to AtomicRefrence except that is utilizes the fact that its values are comparable to ensure that the value held never decreases.
-
-
Constructor Summary
Constructors Constructor Description NewestReference()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Tget()voidupdate(T newValue)
-