Package io.vertx.reactivex.core
Class AbstractVerticle
- java.lang.Object
-
- io.vertx.core.AbstractVerticle
-
- io.vertx.reactivex.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 voidinit(io.vertx.core.Vertx vertx, io.vertx.core.Context context)io.reactivex.CompletablerxStart()Override to return aCompletablethat will complete the deployment of this verticle.io.reactivex.CompletablerxStop()Override to return aCompletablethat will complete the undeployment of this verticle.voidstart(io.vertx.core.Promise<Void> startFuture)voidstop(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:
initin interfaceio.vertx.core.Verticle- Overrides:
initin classio.vertx.core.AbstractVerticle
-
start
public void start(io.vertx.core.Promise<Void> startFuture) throws Exception
- Specified by:
startin interfaceio.vertx.core.Verticle- Overrides:
startin classio.vertx.core.AbstractVerticle- Throws:
Exception
-
rxStart
public io.reactivex.Completable rxStart()
Override to return aCompletablethat will complete the deployment of this verticle. Whennullis returned, theAbstractVerticle.start()will be called instead.- Returns:
- the completable
-
stop
public void stop(io.vertx.core.Promise<Void> stopFuture) throws Exception
- Specified by:
stopin interfaceio.vertx.core.Verticle- Overrides:
stopin classio.vertx.core.AbstractVerticle- Throws:
Exception
-
rxStop
public io.reactivex.Completable rxStop()
Override to return aCompletablethat will complete the undeployment of this verticle. Whennullis returned, theAbstractVerticle.stop()will be called instead.- Returns:
- the completable
-
-