public abstract class Service
extends io.vertx.core.AbstractVerticle
| Modifier and Type | Field and Description |
|---|---|
protected org.slf4j.Logger |
log |
| Constructor and Description |
|---|
Service() |
| Modifier and Type | Method and Description |
|---|---|
protected <T,R> void |
conclude(io.vertx.core.Future<T> execute,
Function<T,R> map,
String action) |
protected void |
fail(String action,
int code,
String message) |
protected Map<String,io.vertx.core.eventbus.Message<io.vertx.core.json.JsonObject>> |
getMessages() |
protected <T> void |
reply(String action,
T message) |
protected abstract void |
setup(io.vertx.core.Vertx vertx)
Initialize
Vert.x-dependent dependencies here. |
void |
start() |
public void start()
throws Exception
start in class io.vertx.core.AbstractVerticleExceptionprotected abstract void setup(io.vertx.core.Vertx vertx)
Vert.x-dependent dependencies here. ie: PersistenceClientvertx - Reference to the Vert.x instance that deployed this verticle.protected <T> void reply(String action, T message)
protected Map<String,io.vertx.core.eventbus.Message<io.vertx.core.json.JsonObject>> getMessages()
Copyright © 2021. All rights reserved.