Class SmartLifecycleUpstreamManagerImpl
java.lang.Object
com.alibaba.rsocket.upstream.UpstreamManagerImpl
com.alibaba.spring.boot.rsocket.upstream.SmartLifecycleUpstreamManagerImpl
- All Implemented Interfaces:
Initializable,UpstreamManager,Closeable,AutoCloseable,org.springframework.context.Lifecycle,org.springframework.context.Phased,org.springframework.context.SmartLifecycle
public class SmartLifecycleUpstreamManagerImpl
extends UpstreamManagerImpl
implements org.springframework.context.SmartLifecycle
SmartLifecycle UpstreamManager implementation with graceful shutdown support
- Author:
- leijuan
-
Field Summary
Fields inherited from interface org.springframework.context.SmartLifecycle
DEFAULT_PHASE -
Constructor Summary
ConstructorsConstructorDescriptionSmartLifecycleUpstreamManagerImpl(RSocketRequesterSupport rsocketRequesterSupport) -
Method Summary
Methods inherited from class com.alibaba.rsocket.upstream.UpstreamManagerImpl
add, addP2pService, close, findAllClusters, findBroker, findBrokerDiscoveryService, findClusterByServiceId, getP2pServices, getRSocket, monitorClusters, refresh, remove, requesterSupport, setP2pServicesMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.springframework.context.SmartLifecycle
getPhase, isAutoStartup
-
Constructor Details
-
SmartLifecycleUpstreamManagerImpl
-
-
Method Details
-
init
- Specified by:
initin interfaceInitializable- Specified by:
initin interfaceUpstreamManager- Overrides:
initin classUpstreamManagerImpl- Throws:
Exception
-
start
public void start()- Specified by:
startin interfaceorg.springframework.context.Lifecycle
-
stop
public void stop()- Specified by:
stopin interfaceorg.springframework.context.Lifecycle
-
stop
- Specified by:
stopin interfaceorg.springframework.context.SmartLifecycle
-
isRunning
public boolean isRunning()- Specified by:
isRunningin interfaceorg.springframework.context.Lifecycle
-