- 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>
httpClient
protected String
httpClientAddress
protected io.vertx.core.http.HttpClientOptions
httpOptions
-
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 void
deploy()
override this method and deploy the Verticles you want to be exposed by your module.protected void
initialize()
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 void initialize()
Description copied from class:VertxModule
override 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:
initialize
in classVertxModule
-
deploy
protected void deploy()
Description copied from class:VertxModule
override 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:
deploy
in classVertxModule
-
-