- java.lang.Object
-
- io.vertx.core.AbstractVerticle
-
- vertx.effect.VertxModule
-
- vertx.effect.core.AbstractHttpClientModule
-
- All Implemented Interfaces:
io.vertx.core.Verticle
- Direct Known Subclasses:
HttpClientModule
public abstract class AbstractHttpClientModule extends VertxModule
-
-
Field Summary
Fields Modifier and Type Field Description protected λc<jsonvalues.JsObj,jsonvalues.JsObj>httpClientprotected StringhttpClientAddressprotected io.vertx.core.http.HttpClientOptionshttpOptions-
Fields inherited from class vertx.effect.VertxModule
deploymentOptions, vertxRef
-
-
Constructor Summary
Constructors Constructor Description AbstractHttpClientModule(io.vertx.core.http.HttpClientOptions options, String address)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voiddeploy()override this method and deploy the Verticles you want to be exposed by your module.protected voidinitialize()override this method to initialize the instance fields of this class that represent the functions exposed by this module.-
Methods inherited from class vertx.effect.VertxModule
ask, ask, deploy, deploy, deploy, deploy, deployConsumer, deployConsumer, deployVerticle, deployVerticle, start, tell, tell, trace, trace
-
-
-
-
Constructor Detail
-
AbstractHttpClientModule
public AbstractHttpClientModule(io.vertx.core.http.HttpClientOptions options, String address)
-
-
Method Detail
-
initialize
protected final void initialize()
Description copied from class:VertxModuleoverride this method to initialize the instance fields of this class that represent the functions exposed by this module. You can establish a dialogue with the Verticle using the methodVerticleRef.ask(), which returns a function, or just send it messages without waiting for the response with the methodVerticleRef.tell(), which returns a consumer. You may be interested in deploying Verticles on the fly to get a greater level of parallelism with the functionVertxRef.spawn(String, λ).- Specified by:
initializein classVertxModule
-
deploy
protected final void deploy()
Description copied from class:VertxModuleoverride this method and deploy the Verticles you want to be exposed by your module. using the functionsVertxModule.deploy(String, λ)(String, Function)} orVertxModule.deployConsumer(String, Consumer). You can also deployed regular Verticles with the methodVertxModule.deployVerticle(AbstractVerticle)- Specified by:
deployin classVertxModule
-
-