public interface SubscriptionVisitor
SubscriptionVisitor
provides serial access to subscription.
It follows the same pattern as DataVisitor
except it does not go
through data fields.
NOTE: This interface is formally unrelated to its data analogue to enforce strict type safety; also their state diagrams are not compatible.
AbstractRecordSink
or RecordBuffer
as a high-performance implementation of it. New code is also discouraged from using this
interface unless it is need for interoperability with legacy code. Various legacy APIs
will be gradually migrated to NG interfaces and classes.Modifier and Type | Field and Description |
---|---|
static SubscriptionVisitor |
VOID |
Modifier and Type | Method and Description |
---|---|
boolean |
hasCapacity()
Returns whether visitor has capacity to efficiently visit next record.
|
void |
visitRecord(DataRecord record,
int cipher,
String symbol,
long time)
Visits next record.
|
static final SubscriptionVisitor VOID
boolean hasCapacity()
NOTE: subscription visitor must process all subscription that is passed to it via visitXXX calls no matter whether it has capacity to do it efficiently.
void visitRecord(DataRecord record, int cipher, String symbol, long time)
Copyright © 2002–2025 Devexperts LLC. All rights reserved.