クラス 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
ネストされたクラスの概要
インターフェース 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(StringSE url, StringSE clientId, StringSE... topic) AbstractMqttMessageDrivenChannelAdapter(ClientManager<T, C> clientManager, StringSE... topic) 方法の概要
修飾子と型メソッド説明voidトピックをサブスクライブリストに追加します(qos = 1)。voidトピックを購読リストに追加します。voidトピックを購読リストに追加します。voiddestroy()protected ApplicationEventPublisherprotected StringSEprotected ClientManager<T,C> protected longサブクラスはこのメソッドを実装して、コンポーネント型情報を提供できます。protected MqttMessageConverterprotected longint[]getQos()StringSE[]getTopic()protected 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 値を指定する必要があります。クラス 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
フィールドの詳細
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