private static class DirectAttributeFamilyProxyDescriptor.ProxyCommitLogReader extends java.lang.Object implements CommitLogReader
CommitLogReader.Factory<T extends CommitLogReader>| Modifier and Type | Field and Description |
|---|---|
private DirectAttributeFamilyProxyDescriptor.AttrLookup |
lookup |
private CommitLogReader |
reader |
| Constructor and Description |
|---|
ProxyCommitLogReader(CommitLogReader reader,
DirectAttributeFamilyProxyDescriptor.AttrLookup lookup) |
| Modifier and Type | Method and Description |
|---|---|
CommitLogReader.Factory<?> |
asFactory()
Convert instance of this reader to
CommitLogReader.Factory suitable for serialization. |
java.util.List<Partition> |
getPartitions()
Retrieve list of partitions of this commit log.
|
java.net.URI |
getUri()
Retrieve URI representing this resource.
|
ObserveHandle |
observe(java.lang.String name,
Position position,
LogObserver observer)
Subscribe observer by name to the commit log.
|
ObserveHandle |
observeBulk(java.lang.String name,
Position position,
boolean stopAtCurrent,
LogObserver observer)
Subscribe to the commit log in a bulk fashion.
|
ObserveHandle |
observeBulkOffsets(java.util.Collection<Offset> offsets,
boolean stopAtCurrent,
LogObserver observer)
Consume from given offsets in a bulk fashion.
|
ObserveHandle |
observeBulkPartitions(java.util.Collection<Partition> partitions,
Position position,
boolean stopAtCurrent,
LogObserver observer)
Subscribe to given partitions in a bulk fashion.
|
ObserveHandle |
observeBulkPartitions(java.lang.String name,
java.util.Collection<Partition> partitions,
Position position,
boolean stopAtCurrent,
LogObserver observer)
Subscribe to given partitions in a bulk fashion.
|
ObserveHandle |
observePartitions(java.util.Collection<Partition> partitions,
Position position,
boolean stopAtCurrent,
LogObserver observer)
Subscribe to given set of partitions.
|
ObserveHandle |
observePartitions(java.lang.String name,
java.util.Collection<Partition> partitions,
Position position,
boolean stopAtCurrent,
LogObserver observer)
Subscribe to given set of partitions.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waithasExternalizableOffsets, observe, observeBulk, observeBulk, observeBulkOffsets, observeBulkPartitions, observeBulkPartitions, observePartitions, observePartitionsprivate final CommitLogReader reader
private final DirectAttributeFamilyProxyDescriptor.AttrLookup lookup
public ProxyCommitLogReader(CommitLogReader reader, DirectAttributeFamilyProxyDescriptor.AttrLookup lookup)
public java.net.URI getUri()
CommitLogReadergetUri in interface CommitLogReaderpublic java.util.List<Partition> getPartitions()
CommitLogReadergetPartitions in interface CommitLogReaderpublic ObserveHandle observe(java.lang.String name, Position position, LogObserver observer)
CommitLogReaderobserve in interface CommitLogReadername - identifier of the consumerposition - the position to seek for in the commit logobserver - the observer to subscribe to the commit logObserveHandle to asynchronously cancel the observationpublic ObserveHandle observePartitions(java.lang.String name, java.util.Collection<Partition> partitions, Position position, boolean stopAtCurrent, LogObserver observer)
CommitLogReaderobservePartitions in interface CommitLogReadername - name of the observerpartitions - the list of partitions to subscribe toposition - the position to seek to in the partitionsstopAtCurrent - when true then stop the observer as soon as it reaches most recent
recordobserver - the observer to subscribe to the partitionsObserveHandle to asynchronously cancel the observationpublic ObserveHandle observePartitions(java.util.Collection<Partition> partitions, Position position, boolean stopAtCurrent, LogObserver observer)
CommitLogReaderobservePartitions in interface CommitLogReaderpartitions - the list of partitions to subscribe toposition - the position to seek to in the partitionsstopAtCurrent - when true then stop the observer as soon as it reaches most recent
recordobserver - the observer to subscribe to the partitionsObserveHandle to asynchronously cancel the observationpublic ObserveHandle observeBulk(java.lang.String name, Position position, boolean stopAtCurrent, LogObserver observer)
CommitLogReaderobserveBulk in interface CommitLogReadername - name of the observerposition - the position to seek to in the partitionsstopAtCurrent - when true then stop the observer as soon as it reaches most recent
recordobserver - the observer to subscribeObserveHandle to asynchronously cancel the observationpublic ObserveHandle observeBulkPartitions(java.util.Collection<Partition> partitions, Position position, boolean stopAtCurrent, LogObserver observer)
CommitLogReaderobserveBulkPartitions in interface CommitLogReaderpartitions - the partitions to subscribe toposition - the position to seek to in the partitionsstopAtCurrent - when true then stop the observer as soon as it reaches most recent
recordobserver - the observer to subscribe to the partitionsObserveHandle to asynchronously cancel the observationpublic ObserveHandle observeBulkPartitions(java.lang.String name, java.util.Collection<Partition> partitions, Position position, boolean stopAtCurrent, LogObserver observer)
CommitLogReaderobserveBulkPartitions in interface CommitLogReadername - name of the observerpartitions - the partitions to subscribe toposition - the position to seek to in the partitionsstopAtCurrent - when true then stop the observer as soon as it reaches most recent
recordobserver - the observer to subscribe to the partitionsObserveHandle to asynchronously cancel the observationpublic ObserveHandle observeBulkOffsets(java.util.Collection<Offset> offsets, boolean stopAtCurrent, LogObserver observer)
CommitLogReaderCommitLogReader.observeBulkPartitions(java.lang.String, java.util.Collection<cz.o2.proxima.storage.Partition>, cz.o2.proxima.storage.commitlog.Position, cz.o2.proxima.direct.commitlog.LogObserver), observe for some time, than
interrupt the consumption, store associated offsets and resume the consumption from these
offsets laterobserveBulkOffsets in interface CommitLogReaderoffsets - the @{link Offset}s to subscribe tostopAtCurrent - true if the processing should stop at current offsetsobserver - the observer to subscribe to the offsetsObserveHandle to asynchronously cancel the observationpublic CommitLogReader.Factory<?> asFactory()
CommitLogReaderCommitLogReader.Factory suitable for serialization.asFactory in interface CommitLogReaderCommitLogReader.Factory representing this readerCopyright © 2017–2021. All rights reserved.