Package io.vertx.rxjava.core
Class AbstractVerticle
- java.lang.Object
-
- io.vertx.core.AbstractVerticle
-
- io.vertx.rxjava.core.AbstractVerticle
-
- All Implemented Interfaces:
io.vertx.core.Verticle
public class AbstractVerticle extends io.vertx.core.AbstractVerticle
- Author:
- Julien Viet
-
-
Constructor Summary
Constructors Constructor Description AbstractVerticle()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
init(io.vertx.core.Vertx vertx, io.vertx.core.Context context)
rx.Completable
rxStart()
Override to return aCompletable
that will complete the deployment of this verticle.rx.Completable
rxStop()
Override to return aCompletable
that will complete the undeployment of this verticle.void
start(io.vertx.core.Promise<Void> startFuture)
void
stop(io.vertx.core.Promise<Void> stopFuture)
-
-
-
Field Detail
-
vertx
protected Vertx vertx
-
-
Method Detail
-
init
public void init(io.vertx.core.Vertx vertx, io.vertx.core.Context context)
- Specified by:
init
in interfaceio.vertx.core.Verticle
- Overrides:
init
in classio.vertx.core.AbstractVerticle
-
start
public void start(io.vertx.core.Promise<Void> startFuture) throws Exception
- Specified by:
start
in interfaceio.vertx.core.Verticle
- Overrides:
start
in classio.vertx.core.AbstractVerticle
- Throws:
Exception
-
rxStart
public rx.Completable rxStart()
Override to return aCompletable
that will complete the deployment of this verticle. Whennull
is returned, theAbstractVerticle.start()
will be called instead.- Returns:
- the completable
-
stop
public void stop(io.vertx.core.Promise<Void> stopFuture) throws Exception
- Specified by:
stop
in interfaceio.vertx.core.Verticle
- Overrides:
stop
in classio.vertx.core.AbstractVerticle
- Throws:
Exception
-
rxStop
public rx.Completable rxStop()
Override to return aCompletable
that will complete the undeployment of this verticle. Whennull
is returned, theAbstractVerticle.stop()
will be called instead.- Returns:
- the completable
-
-