Class SoftReferenceBag<T>

java.lang.Object
com.inductiveautomation.ignition.common.util.SoftReferenceBag<T>

public class SoftReferenceBag<T> extends 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 Details

    • SoftReferenceBag

      public SoftReferenceBag()
  • Method Details

    • take

      public T take()
      Returns and removes the next available item from the bag. May be null if the bag is empty.
    • put

      public void put(T obj)