public abstract class AbstractKeepVerticle
extends io.vertx.core.AbstractVerticle
Extension of a standard verticle with helper methods for common tasks tracks eventbus listners and unloads them at shutdown
| Modifier and Type | Field and Description | 
|---|---|
protected java.util.Collection<io.vertx.core.eventbus.MessageConsumer<? extends java.lang.Object>> | 
consumerTracker  | 
| Constructor and Description | 
|---|
AbstractKeepVerticle()  | 
| Modifier and Type | Method and Description | 
|---|---|
protected java.lang.String | 
getKeepVerticleName()  | 
protected io.vertx.core.json.JsonObject | 
getSubconfig()  | 
protected abstract void | 
listenerStart(io.vertx.core.Promise<java.lang.Void> startFuture)
Starts the specific listen task, like the default start task 
 | 
protected abstract void | 
listenerStop(io.vertx.core.Promise<java.lang.Void> stopFuture)
Stops the specific listen task, like the default stop task 
 | 
void | 
setKeepVerticleName(java.lang.String keepVerticleName)  | 
void | 
start(io.vertx.core.Promise<java.lang.Void> startFuture)  | 
void | 
stop(io.vertx.core.Promise<java.lang.Void> stopFuture)  | 
protected final java.util.Collection<io.vertx.core.eventbus.MessageConsumer<? extends java.lang.Object>> consumerTracker
public void setKeepVerticleName(java.lang.String keepVerticleName)
keepVerticleName - the keepVerticleName to setpublic void start(io.vertx.core.Promise<java.lang.Void> startFuture)
start in interface io.vertx.core.Verticlestart in class io.vertx.core.AbstractVerticlepublic void stop(io.vertx.core.Promise<java.lang.Void> stopFuture)
stop in interface io.vertx.core.Verticlestop in class io.vertx.core.AbstractVerticleprotected java.lang.String getKeepVerticleName()
protected io.vertx.core.json.JsonObject getSubconfig()
protected abstract void listenerStart(io.vertx.core.Promise<java.lang.Void> startFuture)
Starts the specific listen task, like the default start task
startFuture - resolves when starting workedprotected abstract void listenerStop(io.vertx.core.Promise<java.lang.Void> stopFuture)
Stops the specific listen task, like the default stop task
stopFuture - resolves when stopping worked