Class MonitoredLazyLoadItemList<E>

  • All Implemented Interfaces:
    java.io.Serializable, java.lang.Iterable<E>, java.util.Collection<E>, java.util.List<E>

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

      • MonitoredLazyLoadItemList

        public MonitoredLazyLoadItemList​(java.util.Set<PK> prefetchLanguages,
                                         java.util.List<PK> pks,
                                         int prefetchSize)
    • Method Detail

      • 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()