クラス 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
- 関連事項:
フィールド概要
フィールド修飾子と型フィールド説明protected final org.springframework.integration.rsocket.IntegrationRSocketMessageHandlerインターフェース SmartLifecycle から継承されたフィールド
DEFAULT_PHASEコンストラクター概要
コンストラクター修飾子コンストラクター説明protectedAbstractRSocketConnector(org.springframework.integration.rsocket.IntegrationRSocketMessageHandler rSocketMessageHandler) 方法の概要
修飾子と型メソッド説明voidaddEndpoint(IntegrationRSocketEndpoint endpoint) RSocket リクエストをマッピングおよび処理するためのIntegrationRSocketEndpointを追加します。voidvoidprotected abstract voiddoStart()protected @Nullable MimeTypeprotected MimeTypebooleanbooleanvoidsetApplicationContext(ApplicationContext applicationContext) voidsetAutoStartup(boolean autoStartup) voidsetDataMimeType(@Nullable MimeType dataMimeType) データ交換用にMimeTypeを構成します。voidsetEndpoints(IntegrationRSocketEndpoint... endpoints) リクエストのマッピングと処理のためにIntegrationRSocketEndpointインスタンスを構成します。voidsetMetadataMimeType(MimeType metadataMimeType) メタデータ交換用にMimeTypeを構成します。voidsetRSocketStrategies(RSocketStrategies rsocketStrategies) データのエンコード / デコード用にRSocketStrategiesを構成します。voidstart()voidstop()クラス ObjectSE から継承されたメソッド
clone, equalsSE, finalize, getClass, hashCode, notify, notifyAll, toString, wait, waitSE, waitSEインターフェース DisposableBean から継承されたメソッド
destroyインターフェース SmartLifecycle から継承されたメソッド
getPhase, isPauseable, stop
フィールドの詳細
rSocketMessageHandler
protected final org.springframework.integration.rsocket.IntegrationRSocketMessageHandler rSocketMessageHandler
コンストラクターの詳細
AbstractRSocketConnector
protected AbstractRSocketConnector(org.springframework.integration.rsocket.IntegrationRSocketMessageHandler rSocketMessageHandler)
方法の詳細
setDataMimeType
getDataMimeType
setMetadataMimeType
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
doStart
protected abstract void doStart()stop
isRunning