Package kos.api
Interface KosContext
-
- All Known Implementing Classes:
MutableKosContext
public interface KosContextWhile Vert.x provides Json-based configuration out-of-box, it is not suitable to configure Vert.x internals. This object is read-only representation of all sensible configuration that have been previously defined at the Kos's launch.
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static interfaceKosContext.RunnerThatMightFailstatic interfaceKosContext.SupplierThatMightFail<T>
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description <T> io.vertx.core.Future<T>computeBlocking(KosContext.SupplierThatMightFail<T> supplier)@NonNull io.vertx.core.logging.LoggercreateLoggerFor(Class type)io.vertx.config.ConfigRetrievergetConfigRetriever()kos.core.client.RestClientSerializergetDefaultRestClientSerializer()@NonNull SerializergetDefaultSerializer()intgetDefaultStatusForEmptyResponses()io.vertx.core.VertxgetDefaultVertx()@NonNull io.vertx.ext.web.client.WebClientgetDefaultVertxWebClient()@NonNull ExceptionHandlergetExceptionHandler()@NonNull io.vertx.core.http.HttpServerOptionsgetHttpServerOptions()The default server configuration.@NonNull ImplementationLoadergetImplementationLoader()io.vertx.core.spi.logging.LogDelegateFactorygetLogDelegateFactory()@NonNull PayloadSerializationStrategygetPayloadSerializationStrategy()@NonNull SerializergetSerializerForContentType(String contentType)@NonNull ImplementationLoadergetSpi()@NonNull StringConvertergetStringConverter()@NonNull io.vertx.core.json.JsonObjectreadApplicationConfig()io.vertx.core.Future<Void>runBlocking(KosContext.RunnerThatMightFail runner)
-
-
-
Method Detail
-
getImplementationLoader
@NonNull @NonNull ImplementationLoader getImplementationLoader()
-
getPayloadSerializationStrategy
@NonNull @NonNull PayloadSerializationStrategy getPayloadSerializationStrategy()
-
getDefaultStatusForEmptyResponses
int getDefaultStatusForEmptyResponses()
-
getLogDelegateFactory
@NonNull io.vertx.core.spi.logging.LogDelegateFactory getLogDelegateFactory()
-
getDefaultSerializer
@NonNull @NonNull Serializer getDefaultSerializer()
-
getDefaultRestClientSerializer
@NonNull kos.core.client.RestClientSerializer getDefaultRestClientSerializer()
-
getDefaultVertx
@NonNull io.vertx.core.Vertx getDefaultVertx()
-
getDefaultVertxWebClient
@NonNull @NonNull io.vertx.ext.web.client.WebClient getDefaultVertxWebClient()
-
getStringConverter
@NonNull @NonNull StringConverter getStringConverter()
-
getExceptionHandler
@NonNull @NonNull ExceptionHandler getExceptionHandler()
-
getConfigRetriever
@NonNull io.vertx.config.ConfigRetriever getConfigRetriever()
-
createLoggerFor
@NonNull @NonNull io.vertx.core.logging.Logger createLoggerFor(Class type)
-
readApplicationConfig
@NonNull @NonNull io.vertx.core.json.JsonObject readApplicationConfig()
-
getSerializerForContentType
@NonNull @NonNull Serializer getSerializerForContentType(String contentType)
-
getHttpServerOptions
@NonNull @NonNull io.vertx.core.http.HttpServerOptions getHttpServerOptions()
The default server configuration. It will be triggered when the auto-discovery mechanism failed to find one in the classpath.
-
getSpi
@NonNull @NonNull ImplementationLoader getSpi()
-
runBlocking
io.vertx.core.Future<Void> runBlocking(KosContext.RunnerThatMightFail runner)
-
computeBlocking
<T> io.vertx.core.Future<T> computeBlocking(KosContext.SupplierThatMightFail<T> supplier)
-
-