クラス AbstractMqttMessageDrivenChannelAdapter<T,C>
java.lang.ObjectSE
org.springframework.integration.context.IntegrationObjectSupport
org.springframework.integration.endpoint.AbstractEndpoint
org.springframework.integration.endpoint.MessageProducerSupport
org.springframework.integration.mqtt.inbound.AbstractMqttMessageDrivenChannelAdapter<T,C>
- 型パラメーター:
T
- MQTT クライアントの種類C
- MQTT 接続オプション型 (v5 または v3)
- 実装されたすべてのインターフェース:
Aware
、BeanFactoryAware
、BeanNameAware
、DisposableBean
、InitializingBean
、SmartInitializingSingleton
、ApplicationContextAware
、ApplicationEventPublisherAware
、Lifecycle
、Phased
、SmartLifecycle
、ExpressionCapable
、MessageProducer
、IntegrationPattern
、ClientManager.ConnectCallback
、NamedComponent
、IntegrationInboundManagement
、IntegrationManagement
、ManageableLifecycle
、ManageableSmartLifecycle
、TrackableComponent
@ManagedResource
@IntegrationManagedResource
public abstract class AbstractMqttMessageDrivenChannelAdapter<T,C>
extends MessageProducerSupport
implements ApplicationEventPublisherAware, ClientManager.ConnectCallback
MQTT メッセージ駆動型チャネルアダプターの抽象クラス。
- 導入:
- 4.0
- 作成者:
- Gary Russell, Artem Bilan, Trung Pham, Mikhail Polivakha, Artem Vozhdayenko
ネストされたクラスのサマリー
インターフェース org.springframework.integration.support.management.IntegrationManagement から継承されたネストクラス / インターフェース
IntegrationManagement.ManagementOverrides
フィールドサマリー
フィールドクラス org.springframework.integration.endpoint.AbstractEndpoint から継承されたフィールド
lifecycleCondition, lifecycleLock
クラス org.springframework.integration.context.IntegrationObjectSupport から継承されたフィールド
EXPRESSION_PARSER, logger
インターフェース org.springframework.integration.support.management.IntegrationManagement から継承されたフィールド
METER_PREFIX, RECEIVE_COUNTER_NAME, SEND_TIMER_NAME
インターフェース org.springframework.context.SmartLifecycle から継承されたフィールド
DEFAULT_PHASE
コンストラクターのサマリー
コンストラクターコンストラクター説明AbstractMqttMessageDrivenChannelAdapter
(StringSE url, StringSE clientId, StringSE... topic) AbstractMqttMessageDrivenChannelAdapter
(ClientManager<T, C> clientManager, StringSE... topic) メソッドのサマリー
修飾子と型メソッド説明void
トピックをサブスクライブリストに追加します(qos = 1)。void
トピックを購読リストに追加します。void
トピックを購読リストに追加します。void
destroy()
protected ApplicationEventPublisher
protected StringSE
protected ClientManager<T,
C> protected long
サブクラスはこのメソッドを実装して、コンポーネント型情報を提供できます。protected MqttMessageConverter
protected long
int[]
getQos()
StringSE[]
getTopic()
protected StringSE
getUrl()
protected boolean
protected void
onInit()
サブクラスは、初期化ロジック用にこれを実装できます。void
removeTopic
(StringSE... topic) 購読リストからトピックを削除します。void
setApplicationEventPublisher
(ApplicationEventPublisher applicationEventPublisher) void
setCompletionTimeout
(long completionTimeout) 操作の補完タイムアウトを設定します。void
setConverter
(MqttMessageConverter converter) void
setDisconnectCompletionTimeout
(long completionTimeout) 切断時の補完タイムアウトを設定します。void
setManualAcks
(boolean manualAcks) 確認モードを手動に設定します。void
setQos
(int... qos) 各トピックの QoS を設定します。単一の値がすべてのトピックに適用されます。それ以外の場合は、正しい数の QoS 値を指定する必要があります。クラス org.springframework.integration.endpoint.MessageProducerSupport から継承されたメソッド
afterSingletonsInstantiated, buildErrorMessage, doStart, doStop, getErrorChannel, getErrorMessageAttributes, getErrorMessageStrategy, getIntegrationPatternType, getMessagingTemplate, getOutputChannel, isObserved, registerObservationRegistry, sendErrorMessageIfNecessary, sendMessage, setErrorChannel, setErrorChannelName, setErrorMessageStrategy, setObservationConvention, setOutputChannel, setOutputChannelName, setSendTimeout, setShouldTrack, subscribeToPublisher
クラス org.springframework.integration.endpoint.AbstractEndpoint から継承されたメソッド
doStop, getPhase, getRole, isActive, isAutoStartup, isRunning, setAutoStartup, setPhase, setRole, start, stop, stop
クラス org.springframework.integration.context.IntegrationObjectSupport から継承されたメソッド
afterPropertiesSet, extractTypeIfPossible, generateId, getApplicationContext, getApplicationContextId, getBeanDescription, getBeanFactory, getBeanName, getChannelResolver, getComponentName, getConversionService, getExpression, getIntegrationProperties, getMessageBuilderFactory, getTaskScheduler, isInitialized, setApplicationContext, setBeanFactory, setBeanName, setChannelResolver, setComponentName, setConversionService, setMessageBuilderFactory, setPrimaryExpression, setTaskScheduler, toString
クラス java.lang.ObjectSE から継承されたメソッド
clone, equalsSE, finalize, getClass, hashCode, notify, notifyAll, wait, waitSE, waitSE
インターフェース org.springframework.integration.mqtt.core.ClientManager.ConnectCallback から継承されたメソッド
connectComplete
インターフェース org.springframework.integration.support.management.IntegrationManagement から継承されたメソッド
getManagedName, getManagedType, getOverrides, getThisAs, isLoggingEnabled, registerMetricsCaptor, setLoggingEnabled, setManagedName, setManagedType
インターフェース org.springframework.integration.support.context.NamedComponent から継承されたメソッド
getBeanName, getComponentName
フィールドの詳細
topicLock
コンストラクターの詳細
AbstractMqttMessageDrivenChannelAdapter
AbstractMqttMessageDrivenChannelAdapter
メソッドの詳細
setConverter
getClientManager
setQos
public void setQos(int... qos) 各トピックの QoS を設定します。単一の値がすべてのトピックに適用されます。それ以外の場合は、正しい数の QoS 値を指定する必要があります。- パラメーター:
qos
- QoS 値。- 導入:
- 4.1
getQos
getUrl
getClientId
getConverter
getTopic
setDisconnectCompletionTimeout
public void setDisconnectCompletionTimeout(long completionTimeout) 切断時の補完タイムアウトを設定します。デフォルトの 5000L ミリ秒。- パラメーター:
completionTimeout
- タイムアウト。- 導入:
- 5.1.10
getDisconnectCompletionTimeout
protected long getDisconnectCompletionTimeout()onInit
protected void onInit()クラスからコピーされた説明:IntegrationObjectSupport
サブクラスは、初期化ロジック用にこれを実装できます。- オーバーライド:
- クラス
MessageProducerSupport
のonInit
destroy
public void destroy()- 次で指定:
- インターフェース
DisposableBean
のdestroy
- 次で指定:
- インターフェース
IntegrationManagement
のdestroy
- オーバーライド:
- クラス
AbstractEndpoint
のdestroy
getComponentType
クラスからコピーされた説明:IntegrationObjectSupport
サブクラスはこのメソッドを実装して、コンポーネント型情報を提供できます。- 次で指定:
- インターフェース
NamedComponent
のgetComponentType
- オーバーライド:
- クラス
IntegrationObjectSupport
のgetComponentType
setApplicationEventPublisher
- 次で指定:
- インターフェース
ApplicationEventPublisherAware
のsetApplicationEventPublisher
getApplicationEventPublisher
setManualAcks
public void setManualAcks(boolean manualAcks) 確認モードを手動に設定します。- パラメーター:
manualAcks
- 手動の ack に当てはまります。- 導入:
- 5.3
isManualAcks
protected boolean isManualAcks()setCompletionTimeout
public void setCompletionTimeout(long completionTimeout) 操作の補完タイムアウトを設定します。デフォルトの 30000L ミリ秒。- パラメーター:
completionTimeout
- タイムアウト。- 導入:
- 4.1
getCompletionTimeout
protected long getCompletionTimeout()addTopic
トピックを購読リストに追加します。- パラメーター:
topic
- トピック。qos
- QoS。- 例外:
MessagingException
- トピックがすでにリストにある場合。- 導入:
- 4.1
addTopic
トピックをサブスクライブリストに追加します(qos = 1)。- パラメーター:
topics
- トピック。- 例外:
MessagingException
- トピックがすでにリストにある場合。- 導入:
- 4.1
addTopics
トピックを購読リストに追加します。- パラメーター:
topics
- トピック。qos
- 各トピックの QoS。- 例外:
MessagingException
- トピックがすでにリストにある場合。- 導入:
- 4.1
removeTopic
購読リストからトピックを削除します。- パラメーター:
topic
- トピック。- 例外:
MessagingException
- トピックがリストにない場合。- 導入:
- 4.1