クラス AbstractRSocketConnector
java.lang.ObjectSE
org.springframework.integration.rsocket.AbstractRSocketConnector
- 実装されたすべてのインターフェース:
Aware
、DisposableBean
、InitializingBean
、SmartInitializingSingleton
、ApplicationContextAware
、Lifecycle
、Phased
、SmartLifecycle
- 既知の直属サブクラス
ClientRSocketConnector
,ServerRSocketConnector
public abstract class AbstractRSocketConnector
extends ObjectSE
implements ApplicationContextAware, InitializingBean, DisposableBean, SmartInitializingSingleton, SmartLifecycle
一般的な RSocket クライアントおよびサーバー機能用のベースコネクターコンテナー。
すべての Bean がアプリケーションコンテキストで準備ができている場合、内部 IntegrationRSocketMessageHandler
を介してマッピング登録用の IntegrationRSocketEndpoint
インスタンスを受け入れるか、それ以外の場合は自動検出を実行します。
- 導入:
- 5.2
- 作成者:
- Artem Bilan
- 関連事項:
IntegrationRSocketMessageHandler
フィールドサマリー
フィールド修飾子と型フィールド説明protected final org.springframework.integration.rsocket.IntegrationRSocketMessageHandler
インターフェース org.springframework.context.SmartLifecycle から継承されたフィールド
DEFAULT_PHASE
コンストラクターのサマリー
コンストラクター修飾子コンストラクター説明protected
AbstractRSocketConnector
(org.springframework.integration.rsocket.IntegrationRSocketMessageHandler rSocketMessageHandler) メソッドのサマリー
修飾子と型メソッド説明void
addEndpoint
(IntegrationRSocketEndpoint endpoint) RSocket リクエストをマッピングおよび処理するためのIntegrationRSocketEndpoint
を追加します。void
void
protected abstract void
doStart()
protected MimeType
protected MimeType
boolean
boolean
void
setApplicationContext
(ApplicationContext applicationContext) void
setAutoStartup
(boolean autoStartup) void
setDataMimeType
(MimeType dataMimeType) データ交換用にMimeType
を構成します。void
setEndpoints
(IntegrationRSocketEndpoint... endpoints) リクエストのマッピングと処理のためにIntegrationRSocketEndpoint
インスタンスを構成します。void
setMetadataMimeType
(MimeType metadataMimeType) メタデータ交換用にMimeType
を構成します。void
setRSocketStrategies
(RSocketStrategies rsocketStrategies) データのエンコード / デコード用にRSocketStrategies
を構成します。void
start()
void
stop()
クラス java.lang.ObjectSE から継承されたメソッド
clone, equalsSE, finalize, getClass, hashCode, notify, notifyAll, toString, wait, waitSE, waitSE
インターフェース org.springframework.beans.factory.DisposableBean から継承されたメソッド
destroy
インターフェース org.springframework.context.SmartLifecycle から継承されたメソッド
getPhase, stop
フィールドの詳細
rSocketMessageHandler
protected final org.springframework.integration.rsocket.IntegrationRSocketMessageHandler rSocketMessageHandler
コンストラクターの詳細
AbstractRSocketConnector
protected AbstractRSocketConnector(org.springframework.integration.rsocket.IntegrationRSocketMessageHandler rSocketMessageHandler)
メソッドの詳細
setDataMimeType
データ交換用にMimeType
を構成します。- パラメーター:
dataMimeType
- 使用するMimeType
。
getDataMimeType
setMetadataMimeType
メタデータ交換用にMimeType
を構成します。デフォルトは"message/x.rsocket.composite-metadata.v0"
です。- パラメーター:
metadataMimeType
- 使用するMimeType
。
getMetadataMimeType
setRSocketStrategies
データのエンコード / デコード用にRSocketStrategies
を構成します。- パラメーター:
rsocketStrategies
- 使用するRSocketStrategies
。
getRSocketStrategies
setEndpoints
リクエストのマッピングと処理のためにIntegrationRSocketEndpoint
インスタンスを構成します。- パラメーター:
endpoints
- 受信リクエストを処理するためのIntegrationRSocketEndpoint
インスタンス。- 関連事項:
addEndpoint
RSocket リクエストをマッピングおよび処理するためのIntegrationRSocketEndpoint
を追加します。- パラメーター:
endpoint
- マップするIntegrationRSocketEndpoint
。
setApplicationContext
- 次で指定:
- インターフェース
ApplicationContextAware
のsetApplicationContext
- 例外:
BeansException
afterPropertiesSet
public void afterPropertiesSet()- 次で指定:
- インターフェース
InitializingBean
のafterPropertiesSet
afterSingletonsInstantiated
public void afterSingletonsInstantiated()- 次で指定:
- インターフェース
SmartInitializingSingleton
のafterSingletonsInstantiated
setAutoStartup
public void setAutoStartup(boolean autoStartup) isAutoStartup
public boolean isAutoStartup()- 次で指定:
- インターフェース
SmartLifecycle
のisAutoStartup
start
public void start()doStart
protected abstract void doStart()stop
public void stop()isRunning
public boolean isRunning()