Package org.eclipse.hono.util
Class WrappedLifecycleComponentVerticle
java.lang.Object
io.vertx.core.AbstractVerticle
org.eclipse.hono.util.WrappedLifecycleComponentVerticle
- All Implemented Interfaces:
io.vertx.core.Verticle
public class WrappedLifecycleComponentVerticle
extends io.vertx.core.AbstractVerticle
Enables a component with life cycle support to be used as a vert.x verticle.
-
Field Summary
Fields inherited from class io.vertx.core.AbstractVerticle
context, vertx
-
Constructor Summary
ConstructorDescriptionWrappedLifecycleComponentVerticle
(Lifecycle lifecycleComponent) Creates a new WrappedLifecycleComponentVerticle. -
Method Summary
Methods inherited from class io.vertx.core.AbstractVerticle
config, deploymentID, getVertx, init, processArgs, start, stop
-
Constructor Details
-
WrappedLifecycleComponentVerticle
Creates a new WrappedLifecycleComponentVerticle.- Parameters:
lifecycleComponent
- The component whose start and stop methods shall be called onstart(Promise)
andstop(Promise)
of this verticle.- Throws:
NullPointerException
- If lifecycleComponent isnull
.
-
-
Method Details
-
start
- Specified by:
start
in interfaceio.vertx.core.Verticle
- Overrides:
start
in classio.vertx.core.AbstractVerticle
-
stop
- Specified by:
stop
in interfaceio.vertx.core.Verticle
- Overrides:
stop
in classio.vertx.core.AbstractVerticle
-