@ManagedResource @IntegrationManagedResource public abstract class AbstractMqttMessageDrivenChannelAdapter extends MessageProducerSupport
| 修飾子と型 | フィールドと説明 |
|---|---|
protected LockSE | topicLock |
lifecycleCondition, lifecycleLockEXPRESSION_PARSER, loggerDEFAULT_PHASE| コンストラクターと説明 |
|---|
AbstractMqttMessageDrivenChannelAdapter(StringSE url, StringSE clientId, StringSE... topic) |
| 修飾子と型 | メソッドと説明 |
|---|---|
void | addTopic(StringSE... topic) トピックをサブスクライブリストに追加します(qos = 1)。 |
void | addTopic(StringSE topic, int qos) トピックを購読リストに追加します。 |
void | addTopics(StringSE[] topic, int[] qos) トピックを購読リストに追加します。 |
protected StringSE | getClientId() |
StringSE | getComponentType() サブクラスはこのメソッドを実装して、コンポーネント型情報を提供できます。 |
protected MqttMessageConverter | getConverter() |
int[] | getQos() |
StringSE[] | getTopic() |
protected StringSE | getUrl() |
protected void | onInit() サブクラスは、初期化ロジック用にこれを実装できます。 |
void | removeTopic(StringSE... topic) 購読リストからトピックを削除します。 |
void | setConverter(MqttMessageConverter converter) |
void | setQos(int... qos) 各トピックの QoS を設定します。単一の値がすべてのトピックに適用されます。それ以外の場合は、正しい数の QoS 値を指定する必要があります。 |
afterSingletonsInstantiated, buildErrorMessage, doStart, doStop, getErrorChannel, getErrorMessageAttributes, getIntegrationPatternType, getMessagingTemplate, getOutputChannel, sendErrorMessageIfNecessary, sendMessage, setErrorChannel, setErrorChannelName, setErrorMessageStrategy, setOutputChannel, setOutputChannelName, setSendTimeout, setShouldTrack, subscribeToPublisherdestroy, doStop, getPhase, getRole, isAutoStartup, isRunning, setAutoStartup, setPhase, setRole, start, stop, stopafterPropertiesSet, extractTypeIfPossible, generateId, getApplicationContext, getApplicationContextId, getBeanDescription, getBeanFactory, getBeanName, getChannelResolver, getComponentName, getConversionService, getExpression, getIntegrationProperties, getIntegrationProperty, getMessageBuilderFactory, getTaskScheduler, isInitialized, setApplicationContext, setBeanFactory, setBeanName, setChannelResolver, setComponentName, setConversionService, setMessageBuilderFactory, setPrimaryExpression, setTaskScheduler, toStringcloneSE, equalsSE, finalizeSE, getClassSE, hashCodeSE, notifySE, notifyAllSE, waitSE, waitSE, waitSEgetBeanName, getComponentNameprotected final LockSE topicLock
public void setConverter(MqttMessageConverter converter)
public void setQos(int... qos)
qos - QoS 値。@ManagedAttribute public int[] getQos()
protected StringSE getClientId()
protected MqttMessageConverter getConverter()
@ManagedAttribute public StringSE[] getTopic()
public StringSE getComponentType()
IntegrationObjectSupportNamedComponent の getComponentType IntegrationObjectSupport の getComponentType @ManagedOperation public void addTopic(StringSE topic, int qos)
topic - トピック。qos - QoS。MessagingException - トピックがすでにリストにある場合。@ManagedOperation public void addTopic(StringSE... topic)
topic - トピック。MessagingException - トピックがすでにリストにある場合。@ManagedOperation public void addTopics(StringSE[] topic, int[] qos)
topic - トピック。qos - 各トピックの QoS。MessagingException - トピックがすでにリストにある場合。@ManagedOperation public void removeTopic(StringSE... topic)
topic - トピック。MessagingException - トピックがリストにない場合。protected void onInit()
IntegrationObjectSupportMessageProducerSupport の onInit