クラス 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、ComponentSourceAware、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, Jiri Soucek, Glenn Renfro
ネストされたクラスの概要
インターフェース org.springframework.integration.support.management.IntegrationManagement から継承されたネストクラス / インターフェース
IntegrationManagement.ManagementOverridesフィールド概要
フィールドクラス org.springframework.integration.endpoint.AbstractEndpoint から継承されたフィールド
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(@Nullable StringSE url, StringSE clientId, StringSE... topic) AbstractMqttMessageDrivenChannelAdapter(ClientManager<T, C> clientManager, StringSE... topic) 方法の概要
修飾子と型メソッド説明voidトピックをサブスクライブリストに追加します(qos = 1)。voidトピックを購読リストに追加します。voidトピックを購読リストに追加します。voiddestroy()protected ApplicationEventPublisherprotected StringSEprotected @Nullable ClientManager<T, C> protected longprotected @Nullable MqttMessageConverterprotected longint[]getQos()protected longStringSE[]getTopic()protected @Nullable StringSEgetUrl()protected booleanprotected voidonInit()サブクラスは、初期化ロジック用にこれを実装できます。voidremoveTopic(StringSE... topic) 購読リストからトピックを削除します。voidsetApplicationEventPublisher(ApplicationEventPublisher applicationEventPublisher) voidsetCompletionTimeout(long completionTimeout) 操作の完了タイムアウトを設定します。voidsetConverter(MqttMessageConverter converter) voidsetDisconnectCompletionTimeout(long completionTimeout) 切断時の完了タイムアウトを設定します。voidsetManualAcks(boolean manualAcks) 確認モードを手動に設定します。voidsetQos(int... qos) 各トピックの QoS を設定します。単一の値がすべてのトピックに適用されます。それ以外の場合は、正しい数の QoS 値を指定する必要があります。voidsetQuiescentTimeout(long quiescentTimeout) 切断時の quiescentTimeout タイムアウトを設定します。クラス org.springframework.integration.endpoint.MessageProducerSupport から継承されたメソッド
afterSingletonsInstantiated, buildErrorMessage, doStart, doStop, getErrorChannel, getErrorMessageAttributes, getErrorMessageStrategy, getIntegrationPatternType, getMessagingTemplate, getOutputChannel, getRequiredOutputChannel, 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, getComponentDescription, getComponentName, getComponentSource, getConversionService, getExpression, getIntegrationProperties, getMessageBuilderFactory, getTaskScheduler, isInitialized, setApplicationContext, setBeanFactory, setBeanName, setChannelResolver, setComponentDescription, setComponentName, setComponentSource, 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インターフェース org.springframework.context.SmartLifecycle から継承されたメソッド
isPauseable
フィールドの詳細
topicLock
コンストラクターの詳細
AbstractMqttMessageDrivenChannelAdapter
AbstractMqttMessageDrivenChannelAdapter
メソッドの詳細
setConverter
getClientManager
setQos
public void setQos(int... qos) 各トピックの QoS を設定します。単一の値がすべてのトピックに適用されます。それ以外の場合は、正しい数の QoS 値を指定する必要があります。- パラメーター:
qos- QoS 値。- 導入:
- 4.1
getQos
getUrl
getClientId
getConverter
getTopic
setDisconnectCompletionTimeout
getDisconnectCompletionTimeout
protected long getDisconnectCompletionTimeout()setQuiescentTimeout
public void setQuiescentTimeout(long quiescentTimeout) 切断時の quiescentTimeout タイムアウトを設定します。デフォルトはClientManager.QUIESCENT_TIMEOUTミリ秒です。- パラメーター:
quiescentTimeout- タイムアウト。- 導入:
- 7.0.0
getQuiescentTimeout
protected long getQuiescentTimeout()onInit
protected void onInit()クラスからコピーされた説明:IntegrationObjectSupportサブクラスは、初期化ロジック用にこれを実装できます。- オーバーライド:
- クラス
MessageProducerSupportのonInit
destroy
public void destroy()- 次で指定:
- インターフェース
DisposableBeanのdestroy - 次で指定:
- インターフェース
IntegrationManagementのdestroy - オーバーライド:
- クラス
AbstractEndpointのdestroy
getComponentType
- 次で指定:
- インターフェース
NamedComponentのgetComponentType - オーバーライド:
- クラス
MessageProducerSupportのgetComponentType
setApplicationEventPublisher
- 次で指定:
- インターフェース
ApplicationEventPublisherAwareのsetApplicationEventPublisher
getApplicationEventPublisher
setManualAcks
public void setManualAcks(boolean manualAcks) 確認モードを手動に設定します。- パラメーター:
manualAcks- 手動の ack に当てはまります。- 導入:
- 5.3
isManualAcks
protected boolean isManualAcks()setCompletionTimeout
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