Class AbstractRSocketConnector
java.lang.Object
org.springframework.integration.rsocket.AbstractRSocketConnector
- All Implemented Interfaces:
- Aware,- DisposableBean,- InitializingBean,- SmartInitializingSingleton,- ApplicationContextAware,- Lifecycle,- Phased,- SmartLifecycle
- Direct Known Subclasses:
- ClientRSocketConnector,- ServerRSocketConnector
public abstract class AbstractRSocketConnector
extends Object
implements ApplicationContextAware, InitializingBean, DisposableBean, SmartInitializingSingleton, SmartLifecycle
A base connector container for common RSocket client and server functionality.
 
 It accepts IntegrationRSocketEndpoint instances for mapping registration via an internal
 IntegrationRSocketMessageHandler or performs an auto-detection otherwise, when all beans are ready
 in the application context.
- Since:
- 5.2
- Author:
- Artem Bilan
- See Also:
- 
Field SummaryFieldsModifier and TypeFieldDescriptionprotected final org.springframework.integration.rsocket.IntegrationRSocketMessageHandlerFields inherited from interface org.springframework.context.SmartLifecycleDEFAULT_PHASE
- 
Constructor SummaryConstructorsModifierConstructorDescriptionprotectedAbstractRSocketConnector(org.springframework.integration.rsocket.IntegrationRSocketMessageHandler rSocketMessageHandler) 
- 
Method SummaryModifier and TypeMethodDescriptionvoidaddEndpoint(IntegrationRSocketEndpoint endpoint) Add anIntegrationRSocketEndpointfor mapping and handling RSocket requests.voidvoidprotected abstract voiddoStart()protected @Nullable MimeTypeprotected MimeTypebooleanbooleanvoidsetApplicationContext(ApplicationContext applicationContext) voidsetAutoStartup(boolean autoStartup) voidsetDataMimeType(@Nullable MimeType dataMimeType) Configure aMimeTypefor data exchanging.voidsetEndpoints(IntegrationRSocketEndpoint... endpoints) ConfigureIntegrationRSocketEndpointinstances for mapping and handling requests.voidsetMetadataMimeType(MimeType metadataMimeType) Configure aMimeTypefor metadata exchanging.voidsetRSocketStrategies(RSocketStrategies rsocketStrategies) Configure aRSocketStrategiesfor data encoding/decoding.voidstart()voidstop()Methods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.springframework.beans.factory.DisposableBeandestroyMethods inherited from interface org.springframework.context.SmartLifecyclegetPhase, isPauseable, stop
- 
Field Details- 
rSocketMessageHandlerprotected final org.springframework.integration.rsocket.IntegrationRSocketMessageHandler rSocketMessageHandler
 
- 
- 
Constructor Details- 
AbstractRSocketConnectorprotected AbstractRSocketConnector(org.springframework.integration.rsocket.IntegrationRSocketMessageHandler rSocketMessageHandler) 
 
- 
- 
Method Details- 
setDataMimeType
- 
getDataMimeType
- 
setMetadataMimeType
- 
getMetadataMimeType
- 
setRSocketStrategiesConfigure aRSocketStrategiesfor data encoding/decoding.- Parameters:
- rsocketStrategies- the- RSocketStrategiesto use.
 
- 
getRSocketStrategies
- 
setEndpointsConfigureIntegrationRSocketEndpointinstances for mapping and handling requests.- Parameters:
- endpoints- the- IntegrationRSocketEndpointinstances for handling inbound requests.
- See Also:
 
- 
addEndpointAdd anIntegrationRSocketEndpointfor mapping and handling RSocket requests.- Parameters:
- endpoint- the- IntegrationRSocketEndpointto map.
 
- 
setApplicationContext- Specified by:
- setApplicationContextin interface- ApplicationContextAware
- Throws:
- BeansException
 
- 
afterPropertiesSetpublic void afterPropertiesSet()- Specified by:
- afterPropertiesSetin interface- InitializingBean
 
- 
afterSingletonsInstantiatedpublic void afterSingletonsInstantiated()- Specified by:
- afterSingletonsInstantiatedin interface- SmartInitializingSingleton
 
- 
setAutoStartuppublic void setAutoStartup(boolean autoStartup) 
- 
isAutoStartuppublic boolean isAutoStartup()- Specified by:
- isAutoStartupin interface- SmartLifecycle
 
- 
start
- 
doStartprotected abstract void doStart()
- 
stop
- 
isRunning
 
-