public class VertxNativeFeature extends AbstractFeature
| Modifier and Type | Field and Description |
|---|---|
static String |
DEFAULT_HTTPCLIENT_NAME |
| Constructor and Description |
|---|
VertxNativeFeature() |
| Modifier and Type | Method and Description |
|---|---|
java.util.function.Supplier<io.vertx.core.http.HttpClient> |
httpClient() |
java.util.function.Supplier<io.vertx.core.http.HttpClient> |
httpClient(String httpClientName) |
java.util.function.Supplier<io.vertx.core.http.HttpClient> |
httpClient(String httpClientName,
io.vertx.core.http.HttpClientOptions httpClientOptions) |
void |
start(Server server)
Called by Helix Server when the server is starting.
|
void |
stop(Server server)
Called by Helix Server when the server has stopped.
|
findByType, findByType, finish, getFeatureName, getRegistrationMap, logFeatureDetails, registerpublic static final String DEFAULT_HTTPCLIENT_NAME
public void start(Server server)
AbstractFeatureThe order features will be called is the same order they initially registered with Helix. At the time this method is called, Vert.x will be initialized enabling the feature to create any Vert.x related resources.
Features should create and register any singleton components and allocate resources during the start call. Blocking operations are allowed in this method.
start in interface Featurestart in class AbstractFeatureserver - Helix Server that is starting uppublic void stop(Server server)
AbstractFeatureThe order features will be called is the reverse order they initially registered with Helix. Features must release all owned resources at this point. Blocking operations are allowed in this method.
stop in interface Featurestop in class AbstractFeatureserver - Helix Server that is being stoppedpublic java.util.function.Supplier<io.vertx.core.http.HttpClient> httpClient()
public java.util.function.Supplier<io.vertx.core.http.HttpClient> httpClient(String httpClientName)
public java.util.function.Supplier<io.vertx.core.http.HttpClient> httpClient(String httpClientName, io.vertx.core.http.HttpClientOptions httpClientOptions)
Copyright © 2016. All rights reserved.