public interface ConfigProcessor
Buffer
to a
JsonObject
.Modifier and Type | Method and Description |
---|---|
String |
name()
Name of the processor, generally the name of the format it handles.
|
default io.vertx.core.Future<io.vertx.core.json.JsonObject> |
process(io.vertx.core.Vertx vertx,
io.vertx.core.json.JsonObject configuration,
io.vertx.core.buffer.Buffer input)
Transforms the given
input into a JsonObject . |
default void |
process(io.vertx.core.Vertx vertx,
io.vertx.core.json.JsonObject configuration,
io.vertx.core.buffer.Buffer input,
io.vertx.core.Handler<io.vertx.core.AsyncResult<io.vertx.core.json.JsonObject>> handler)
Deprecated.
implement
process(Vertx, JsonObject, Buffer) instead |
String name()
@Deprecated default void process(io.vertx.core.Vertx vertx, io.vertx.core.json.JsonObject configuration, io.vertx.core.buffer.Buffer input, io.vertx.core.Handler<io.vertx.core.AsyncResult<io.vertx.core.json.JsonObject>> handler)
process(Vertx, JsonObject, Buffer)
insteadinput
into a JsonObject
. This is an asynchronous non-blocking
transformation. The result is passed to the given Handler
. If the transformation fails, the passed
AsyncResult
would be marked as failed. On success, the result contains the JsonObject
.vertx
- the Vert.x instanceconfiguration
- the processor configuration, may be null
input
- the input, must not be null
handler
- the result handler, must not be null
. The handler will be called in the same context as
the caller.default io.vertx.core.Future<io.vertx.core.json.JsonObject> process(io.vertx.core.Vertx vertx, io.vertx.core.json.JsonObject configuration, io.vertx.core.buffer.Buffer input)
input
into a JsonObject
.
This is an asynchronous non-blocking transformation.
vertx
- the Vert.x instanceconfiguration
- the processor configuration, may be null
input
- the input, must not be null
Copyright © 2020 Eclipse. All rights reserved.