Package io.vertx.reactivex.core
Class AbstractVerticle
- java.lang.Object
-
- io.vertx.core.AbstractVerticle
-
- io.vertx.reactivex.core.AbstractVerticle
-
- All Implemented Interfaces:
Verticle
public class AbstractVerticle extends AbstractVerticle
- Author:
- Julien Viet
-
-
Field Summary
Fields Modifier and Type Field Description protected Vertxvertx-
Fields inherited from class io.vertx.core.AbstractVerticle
context
-
-
Constructor Summary
Constructors Constructor Description AbstractVerticle()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidinit(Vertx vertx, 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(Promise<Void> startFuture)voidstop(Promise<Void> stopFuture)-
Methods inherited from class io.vertx.core.AbstractVerticle
config, deploymentID, getVertx, processArgs, start, stop
-
-
-
-
Field Detail
-
vertx
protected Vertx vertx
-
-
Method Detail
-
init
public void init(Vertx vertx, Context context)
- Specified by:
initin interfaceVerticle- Overrides:
initin classAbstractVerticle
-
start
public void start(Promise<Void> startFuture) throws Exception
- Specified by:
startin interfaceVerticle- Overrides:
startin classAbstractVerticle- 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(Promise<Void> stopFuture) throws Exception
- Specified by:
stopin interfaceVerticle- Overrides:
stopin classAbstractVerticle- 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
-
-