Class SoftReferenceBag<T>
- java.lang.Object
-
- com.inductiveautomation.ignition.common.util.SoftReferenceBag<T>
-
public class SoftReferenceBag<T> extends java.lang.Object
Acts as a bag (kind of like an un-ordered list or a set of like items) whose entries are kept in SoftReferences. This class is not thread-safe - provide your own locking if multiple threads will access it.
-
-
Constructor Summary
Constructors Constructor Description SoftReferenceBag()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
put(T obj)
T
take()
Returns and removes the next available item from the bag.
-