Package vertxval
Class VertxModule
- java.lang.Object
-
- io.vertx.core.AbstractVerticle
-
- vertxval.VertxModule
-
- All Implemented Interfaces:
io.vertx.core.Verticle
- Direct Known Subclasses:
HttpClientModule
public abstract class VertxModule extends io.vertx.core.AbstractVerticle
Actor that acts as a module deploying and exposing all the deployed actors.
-
-
Field Summary
Fields Modifier and Type Field Description protected Deployer
deployer
Factory to deploy or spawn actorsprotected io.vertx.core.DeploymentOptions
deploymentOptions
-
Constructor Summary
Constructors Constructor Description VertxModule()
VertxModule(io.vertx.core.DeploymentOptions options)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected abstract void
define()
The purpose of this method is to initialize the functions/consumers/suppliers defined in public fields of this class that will be exposed.protected abstract void
deploy()
protected <I,O>
voiddeployConsumer(String address, Consumer<io.vertx.core.eventbus.Message<I>> consumer)
protected <I,O>
voiddeployConsumer(String address, Consumer<io.vertx.core.eventbus.Message<I>> consumer, io.vertx.core.DeploymentOptions options)
protected <I,O>
voiddeployFn(String address, Function<I,O> fn)
protected <I,O>
voiddeployFn(String address, Function<I,O> fn, io.vertx.core.DeploymentOptions options)
void
deployTask(Runnable runnable)
void
deployTask(Runnable runnable, io.vertx.core.DeploymentOptions options)
void
deployVerticle(io.vertx.core.AbstractVerticle verticle)
protected <I,O>
voiddeployλ(String address, λ<I,O> lambda)
protected <I,O>
voiddeployλ(String address, λ<I,O> lambda, io.vertx.core.DeploymentOptions options)
protected <I,O>
VerticleRef<I,O>getDeployedVerticle(String address)
void
start(io.vertx.core.Promise<Void> start)
-
-
-
Field Detail
-
deploymentOptions
protected final io.vertx.core.DeploymentOptions deploymentOptions
-
deployer
protected Deployer deployer
Factory to deploy or spawn actors
-
-
Method Detail
-
define
protected abstract void define()
The purpose of this method is to initialize the functions/consumers/suppliers defined in public fields of this class that will be exposed.
-
deploy
protected abstract void deploy()
-
start
public void start(io.vertx.core.Promise<Void> start)
- Specified by:
start
in interfaceio.vertx.core.Verticle
- Overrides:
start
in classio.vertx.core.AbstractVerticle
-
getDeployedVerticle
protected <I,O> VerticleRef<I,O> getDeployedVerticle(String address)
- Type Parameters:
I
- the type of the input messageO
- the type of the output message- Parameters:
address
- the name of the actor- Returns:
- an ActorRef
-
deployTask
public void deployTask(Runnable runnable)
-
deployTask
public void deployTask(Runnable runnable, io.vertx.core.DeploymentOptions options)
-
deployVerticle
public void deployVerticle(io.vertx.core.AbstractVerticle verticle)
-
deployConsumer
protected <I,O> void deployConsumer(String address, Consumer<io.vertx.core.eventbus.Message<I>> consumer)
-
deployConsumer
protected <I,O> void deployConsumer(String address, Consumer<io.vertx.core.eventbus.Message<I>> consumer, io.vertx.core.DeploymentOptions options)
-
deployFn
protected <I,O> void deployFn(String address, Function<I,O> fn, io.vertx.core.DeploymentOptions options)
-
-