public interface ServiceLifecycle extends Extension
ServiceLifecycledefines a lifecycle interface for a OMS related service endpoint, like
Consumer, and so on.
If the service endpoint class implements the
ServiceLifecycle interface, most of the containers can manage
the lifecycle of the corresponding service endpoint objects easily.
Any service endpoint should support repeated restart if it implements the
|Modifier and Type||Method and Description|
Used for get service current state, for execution of some operations is dependent on the current service state.
Used for startup or initialization of a service endpoint.
Notify a service instance of the end of its life cycle.
Copyright © 2017–2020 OpenMessaging. All rights reserved.