public interface StableSubscriptionFilter extends SubscriptionFilter
SubscriptionFilterFactory
.
This is a legacy interface. All new implementations shall extend
QDFilter
class. Legacy implementations of this interface are coerced into QDFilter
class using QDFilter.fromFilter(com.devexperts.qd.SubscriptionFilter, com.devexperts.qd.DataScheme)
method.
Modifier and Type | Method and Description |
---|---|
StableSubscriptionFilter |
toStableFilter()
Returns a stable filter that is the same or more encompassing as this filter.
|
acceptRecord
StableSubscriptionFilter toStableFilter()
QDFilter.ANYTHING
, which means that this filter is not stable
(it is dynamic) and the only stable extension of it constitutes all symbols.
Stable filters must return this
as a result of this method. The result of this method
satisfies the following constrains:
result
is null or result.toStableFilter() == result
result
is null or this.acceptRecord(...)
implies result.acceptRecord(...)
.
result
is null or
result.toString()
must parse back to the same filter via data scheme's
SubscriptionFilterFactory
.
All new implementations of this method shall return an instance of class that extends QDFilter
and should never return null.
Copyright © 2002-2018 Devexperts LLC. All Rights Reserved.