public interface QDDistributor extends DataConsumer, RecordConsumer, QDStatsContainer
QDDistributor
represents an individual data provider in the QDCollector
.
It is responsible for tracking state of the provider in the collector,
including its total subscription, and to provide access point for that provider.Modifier and Type | Interface and Description |
---|---|
static interface |
QDDistributor.Builder
Builder for collector distributors.
|
VOID
Modifier and Type | Method and Description |
---|---|
void |
close()
Closes this distributor and releases allocated resources in its
QDCollector . |
RecordProvider |
getAddedRecordProvider()
Returns record provider that is used to accumulate added subscription.
|
SubscriptionProvider |
getAddedSubscriptionProvider()
Deprecated.
|
RecordProvider |
getRemovedRecordProvider()
Returns subscription provider that is used to accumulate removed subscription.
|
SubscriptionProvider |
getRemovedSubscriptionProvider()
Deprecated.
|
void |
process(RecordSource source)
Processes all data from specified record source.
|
void |
processData(DataIterator iterator)
Deprecated.
|
getStats
SubscriptionProvider getAddedSubscriptionProvider()
getAddedRecordProvider()
RecordProvider getAddedRecordProvider()
SubscriptionProvider getRemovedSubscriptionProvider()
getRemovedRecordProvider()
RecordProvider getRemovedRecordProvider()
void close()
QDCollector
.
Closed distributor can not be activated again and shall not be used anymore.
The behavior of closed distributor with respect to different actions is undefined, but is guaranteed
to be safe, that is, it will not produce any exceptions or disruptive behavior. In particular, repeated
calls to close
will not produce any further changes to its state.
Methods like processData
may continue to work or may result in no action
depending on implementation. Subscription retrieval may continue to work or may retrieve no subscription.
void processData(DataIterator iterator)
process(RecordSource)
.DataIterator
also implements RecordSource
interface
(RecordBuffer
is such default and high-performance implementation),
since it yields better performance in certain cases and enables some new features that are not supported with
legacy DataIterator
implementations.processData
in interface DataConsumer
void process(RecordSource source)
process
in interface RecordConsumer
source
- the record source.Copyright © 2002–2025 Devexperts LLC. All rights reserved.