Package de.hybris.platform.test
Class MonitoredLazyLoadItemList<E>
java.lang.Object
java.util.AbstractCollection<E>
java.util.AbstractList<E>
de.hybris.platform.core.internal.BaseLazyLoadItemList<E>
de.hybris.platform.core.LazyLoadItemList<E>
de.hybris.platform.test.MonitoredLazyLoadItemList<E>
- All Implemented Interfaces:
Serializable,Iterable<E>,Collection<E>,List<E>
Test class with monitor for not empty page buffer.
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class de.hybris.platform.core.LazyLoadItemList
LazyLoadItemList.BufferedPage<T> -
Field Summary
Fields inherited from class de.hybris.platform.core.LazyLoadItemList
DEFAULT_PREFETCH_SIZE, DEFUALT_PREFETCH_SIZE, EMPTY_LIST, PREFETCH_SIZE_PROPERTYFields inherited from class de.hybris.platform.core.internal.BaseLazyLoadItemList
DEFAULT_CONFIG_PREFETCH_SIZEFields inherited from class java.util.AbstractList
modCount -
Constructor Summary
ConstructorsConstructorDescriptionMonitoredLazyLoadItemList(Set<PK> prefetchLanguages, List<PK> pks, int prefetchSize) -
Method Summary
Modifier and TypeMethodDescriptionprotected EgetBuffered(int listPos) Gets an object of type E for absolute global givenlistPos.booleanMethods inherited from class de.hybris.platform.core.LazyLoadItemList
add, clear, get, getBufferedPageIfLoaded, getCurrentBufferedPage, getOrSwitchBufferedPage, invalidateBuffer, isIgnoreMissing, loadPage, remove, set, setIgnoreMissing, setModifiable, setPreFetchSize, switchBufferedPage, switchBufferedPageNoLock, switchBufferedPageSynchronized, switchPageMethods inherited from class de.hybris.platform.core.internal.BaseLazyLoadItemList
assureIndex, contains, equals, getConfig, getPK, getPKList, getPKListInternal, getPrefetchLanguages, getPreFetchSize, hashCode, isModifiable, iterator, size, toStringMethods inherited from class java.util.AbstractList
add, addAll, indexOf, lastIndexOf, listIterator, listIterator, removeRange, subListMethods inherited from class java.util.AbstractCollection
addAll, containsAll, isEmpty, remove, removeAll, retainAll, toArray, toArrayMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface java.util.Collection
parallelStream, removeIf, stream, toArrayMethods inherited from interface java.util.List
addAll, containsAll, isEmpty, remove, removeAll, replaceAll, retainAll, sort, spliterator, toArray, toArray
-
Constructor Details
-
MonitoredLazyLoadItemList
-
-
Method Details
-
getBuffered
Description copied from class:LazyLoadItemListGets an object of type E for absolute global givenlistPos. 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.currentBufferedPageto retrieve consistent result for given index in multi-threaded environment.- Overrides:
getBufferedin classLazyLoadItemList<E>
-
isNotEmptyPageBuffer
public boolean isNotEmptyPageBuffer()
-