Package ai.platon.pulsar.common.collect
Class ConcurrentLoadingIterable
-
- All Implemented Interfaces:
-
kotlin.collections.Iterable
public class ConcurrentLoadingIterable<E extends Object> implements Iterable<E>
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public final classConcurrentLoadingIterable.LoadingIterator
-
Field Summary
Fields Modifier and Type Field Description private final IntegercacheSizeprivate final Integersizeprivate final IntegerestimatedSizeprivate final DataCollector<E>regularCollectorprivate final DataCollector<E>realTimeCollectorprivate final DataCollector<E>delayCollectorprivate final IntegerlowerCacheSizeprivate final IntegerupperCacheSize
-
Constructor Summary
Constructors Constructor Description ConcurrentLoadingIterable(DataCollector<E> regularCollector, DataCollector<E> realTimeCollector, DataCollector<E> delayCollector, Integer lowerCacheSize, Integer upperCacheSize)
-
Method Summary
Modifier and Type Method Description final IntegergetCacheSize()final IntegergetSize()final IntegergetEstimatedSize()final DataCollector<E>getRegularCollector()final DataCollector<E>getRealTimeCollector()final DataCollector<E>getDelayCollector()final IntegergetLowerCacheSize()final IntegergetUpperCacheSize()ConcurrentLoadingIterable.LoadingIterator<E>iterator()final UnitaddFirst(E e)add an item to the very beginning of the fetch queue final UnitaddLast(E e)final Unitshuffle()final Unitclear()-
-
Constructor Detail
-
ConcurrentLoadingIterable
ConcurrentLoadingIterable(DataCollector<E> regularCollector, DataCollector<E> realTimeCollector, DataCollector<E> delayCollector, Integer lowerCacheSize, Integer upperCacheSize)
-
-
Method Detail
-
getCacheSize
final Integer getCacheSize()
-
getEstimatedSize
final Integer getEstimatedSize()
-
getRegularCollector
final DataCollector<E> getRegularCollector()
-
getRealTimeCollector
final DataCollector<E> getRealTimeCollector()
-
getDelayCollector
final DataCollector<E> getDelayCollector()
-
getLowerCacheSize
final Integer getLowerCacheSize()
-
getUpperCacheSize
final Integer getUpperCacheSize()
-
iterator
ConcurrentLoadingIterable.LoadingIterator<E> iterator()
-
-
-
-