public interface ServiceLifecycle
ServiceLifecycle defines a lifecycle interface for a OMS related service endpoint, like Producer,
PushConsumer, 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 ServiceLifecycle interface.
| Modifier and Type | Method and Description |
|---|---|
void |
shutdown()
Notify a service instance of the end of its life cycle.
|
void |
startup()
Used for startup or initialization of a service endpoint.
|
void startup()
void shutdown()
Copyright © 2017–2018 OpenMessaging. All rights reserved.