Class AbstractVerticle
java.lang.Object
io.vertx.core.AbstractVerticle
io.vertx.rxjava3.core.AbstractVerticle
- All Implemented Interfaces:
Deployable, Verticle
- Author:
- Julien Viet
-
Field Summary
FieldsFields inherited from class AbstractVerticle
context -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidInitialise the verticle.rxStart()Override to return aCompletablethat will complete the deployment of this verticle.rxStop()Override to return aCompletablethat will complete the undeployment of this verticle.voidStart the verticle.voidStop the verticle.Methods inherited from class AbstractVerticle
config, deploy, deploymentID, getVertx, processArgs, start, stop, undeploy
-
Field Details
-
vertx
-
-
Constructor Details
-
AbstractVerticle
public AbstractVerticle()
-
-
Method Details
-
init
Description copied from class:AbstractVerticleInitialise the verticle.This is called by Vert.x when the verticle instance is deployed. Don't call it yourself.
- Specified by:
initin interfaceVerticle- Overrides:
initin classAbstractVerticle- Parameters:
vertx- the deploying Vert.x instancecontext- the context of the verticle
-
start
Description copied from class:AbstractVerticleStart the verticle.This is called by Vert.x when the verticle instance is deployed. Don't call it yourself.
If your verticle does things in its startup which take some time then you can override this method and call the startFuture some time later when start up is complete.
- Specified by:
startin interfaceVerticle- Overrides:
startin classAbstractVerticle- Parameters:
startFuture- a promise which should be called when verticle start-up is complete.- Throws:
Exception
-
rxStart
Override to return aCompletablethat will complete the deployment of this verticle. Whennullis returned, theAbstractVerticle.start()will be called instead.- Returns:
- the completable
-
stop
Description copied from class:AbstractVerticleStop the verticle.This is called by Vert.x when the verticle instance is un-deployed. Don't call it yourself.
If your verticle does things in its shut-down which take some time then you can override this method and call the stopFuture some time later when clean-up is complete.
- Specified by:
stopin interfaceVerticle- Overrides:
stopin classAbstractVerticle- Parameters:
stopFuture- a promise which should be called when verticle clean-up is complete.- Throws:
Exception
-
rxStop
Override to return aCompletablethat will complete the undeployment of this verticle. Whennullis returned, theAbstractVerticle.stop()will be called instead.- Returns:
- the completable
-