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 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() |
void |
setFilter(String filterString)
Sets additional filter 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()
@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.public String toString()
MessageAdapter.ConfigurableFactory
toString
in class MessageAdapter.ConfigurableFactory
Copyright © 2002-2019 Devexperts LLC. All Rights Reserved.