private static class BatchLogReaders.ThroughputLimitedBatchLogReader extends BatchLogReaders.ForwardingLimitedBatchLogReader
BatchLogReader.Factory<T extends BatchLogReader>| Modifier and Type | Field and Description |
|---|---|
private ThroughputLimiter |
limiter |
| Constructor and Description |
|---|
ThroughputLimitedBatchLogReader(BatchLogReader delegate,
ThroughputLimiter limiter) |
| Modifier and Type | Method and Description |
|---|---|
BatchLogReader.Factory<?> |
asFactory()
Convert instance of this reader to
BatchLogReader.Factory suitable for serialization. |
ObserveHandle |
observe(java.util.List<Partition> partitions,
java.util.List<AttributeDescriptor<?>> attributes,
BatchLogObserver observer)
Observe data stored in given partitions.
|
private BatchLogObserver |
throughputLimited(BatchLogObserver delegate,
java.util.List<Partition> consumedPartitions) |
java.lang.String |
toString() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetPartitions, getPartitions, getPartitionsprivate final ThroughputLimiter limiter
public ThroughputLimitedBatchLogReader(BatchLogReader delegate, ThroughputLimiter limiter)
public ObserveHandle observe(java.util.List<Partition> partitions, java.util.List<AttributeDescriptor<?>> attributes, BatchLogObserver observer)
BatchLogReaderpartitions - partitions to observeattributes - attribute descriptors to filter outobserver - the observer by which to consume the dataObserveHandle to control the consumptionpublic java.lang.String toString()
toString in class BatchLogReaders.ForwardingLimitedBatchLogReaderpublic BatchLogReader.Factory<?> asFactory()
BatchLogReaderBatchLogReader.Factory suitable for serialization.BatchLogReader.Factory representing this readerprivate BatchLogObserver throughputLimited(BatchLogObserver delegate, java.util.List<Partition> consumedPartitions)
Copyright © 2017–2021. All rights reserved.