Class MonitoredLazyLoadItemList<E>

All Implemented Interfaces:
Serializable, Iterable<E>, Collection<E>, List<E>

public class MonitoredLazyLoadItemList<E> extends LazyLoadItemList<E>
Test class with monitor for not empty page buffer.
See Also:
  • Constructor Details

    • MonitoredLazyLoadItemList

      public MonitoredLazyLoadItemList(Set<PK> prefetchLanguages, List<PK> pks, int prefetchSize)
  • Method Details

    • getBuffered

      protected E getBuffered(int listPos)
      Description copied from class: LazyLoadItemList
      Gets an object of type E for absolute global given listPos. Internally it checks if this index is accessible for the current page if not appropriate page is loaded.

      Method ensured by change of volatile LazyLoadItemList.currentBufferedPage to retrieve consistent result for given index in multi-threaded environment.

      Overrides:
      getBuffered in class LazyLoadItemList<E>
    • isNotEmptyPageBuffer

      public boolean isNotEmptyPageBuffer()