public abstract static class MessageAdapter.AbstractFactory extends MessageAdapter.ConfigurableFactory
QDEndpoint
or a bunch of QDCollector
instances.
It has built in support of a FILTER_CONFIGURATION_KEY
that is aligned with a legacy ConfigurableMessageAdapterFactory
interface.Modifier and Type | Field and Description |
---|---|
protected QDEndpoint |
endpoint |
protected QDFilter |
filter |
protected QDHistory |
history |
protected DataScheme |
scheme |
protected QDStream |
stream |
protected QDFilter |
stripe |
protected QDTicker |
ticker |
Modifier | Constructor and Description |
---|---|
protected |
AbstractFactory(QDEndpoint endpoint,
SubscriptionFilter filter) |
protected |
AbstractFactory(QDTicker ticker,
QDStream stream,
QDHistory history,
SubscriptionFilter filter)
Creates new factory.
|
Modifier and Type | Method and Description |
---|---|
QDCollector[] |
getCollectors() |
QDFilter |
getFilter()
Returns current filter of this factory.
|
DataScheme |
getScheme() |
QDFilter |
getStripe() |
String |
getStripeFilter() |
void |
setFilter(String filterString)
Sets additional filter for this factory.
|
void |
setStripeFilter(String stripeString)
Sets stripe (represented as QDFilter) for this factory.
|
String |
toString()
Returns description of this factory for management and logging purposes.
|
clone, createAdapter, createMessageAdapterFactory, getEndpoint, setEndpoint
protected final QDEndpoint endpoint
protected final DataScheme scheme
protected final QDTicker ticker
protected final QDStream stream
protected final QDHistory history
protected AbstractFactory(QDTicker ticker, QDStream stream, QDHistory history, SubscriptionFilter filter)
null
parameters.ticker
- QDTicker to use.stream
- QDStream to use.history
- QDHistory to use.filter
- SubscriptionFilter to use.protected AbstractFactory(QDEndpoint endpoint, SubscriptionFilter filter)
public DataScheme getScheme()
public QDCollector[] getCollectors()
public QDFilter getFilter()
setFilter(String)
method.@Configurable(description="default filter for all channels") public void setFilter(String filterString) throws FilterSyntaxException
filterString
- filter for this message adapter.FilterSyntaxException
- if filter string is invalid.@Configurable(description="default stripe for all channels") public void setStripeFilter(String stripeString)
stripeString
- stripe for this message adapter.FilterSyntaxException
- if stripe filter specification is invalid.public String toString()
MessageAdapter.ConfigurableFactory
toString
in class MessageAdapter.ConfigurableFactory
Copyright © 2002–2025 Devexperts LLC. All rights reserved.