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:
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
-
-
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_PROPERTY
-
Fields inherited from class de.hybris.platform.core.internal.BaseLazyLoadItemList
DEFAULT_CONFIG_PREFETCH_SIZE
-
-
Constructor Summary
Constructors Constructor Description MonitoredLazyLoadItemList(java.util.Set<PK> prefetchLanguages, java.util.List<PK> pks, int prefetchSize)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected E
getBuffered(int listPos)
Gets an object of type E for absolute global givenlistPos
.boolean
isNotEmptyPageBuffer()
-
Methods 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, switchPage
-
Methods inherited from class de.hybris.platform.core.internal.BaseLazyLoadItemList
assureIndex, contains, equals, getConfig, getPK, getPKList, getPKListInternal, getPrefetchLanguages, getPreFetchSize, hashCode, isModifiable, iterator, size, toString
-
Methods inherited from class java.util.AbstractList
add, addAll, indexOf, lastIndexOf, listIterator, listIterator, removeRange, subList
-
Methods inherited from class java.util.AbstractCollection
addAll, containsAll, isEmpty, remove, removeAll, retainAll, toArray, toArray
-
-
-
-
Method Detail
-
getBuffered
protected E getBuffered(int listPos)
Description copied from class:LazyLoadItemList
Gets 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.currentBufferedPage
to retrieve consistent result for given index in multi-threaded environment.- Overrides:
getBuffered
in classLazyLoadItemList<E>
-
isNotEmptyPageBuffer
public boolean isNotEmptyPageBuffer()
-
-