A
- common representation type for all action commands (typically Json / GenericRecord for Avro)K
- key for the output topic for the result of Http topicsB
- body for Http requestO
- value returned by the Http request - also normally quite genericR
- final result type that ends up in value topicpublic final class HttpSpec<A,K,B,O,R> extends Object
Modifier and Type | Class and Description |
---|---|
static interface |
HttpSpec.UndoFunction<A,K,B,O>
The UndoFunction functional interface.
|
Modifier and Type | Field and Description |
---|---|
String |
actionType |
java.util.function.BiConsumer<HttpRequest<K,B>,Callback<O>> |
asyncHttpFunction |
HttpRequest.HttpRequestDecoder<A,K,B> |
decoder |
String |
groupId |
Optional<HttpOutput<K,O,R>> |
outputSpec |
Optional<java.time.Duration> |
timeout |
HttpSpec.UndoFunction<A,K,B,O> |
undoFunction |
Constructor and Description |
---|
HttpSpec() |
public final String actionType
public final HttpRequest.HttpRequestDecoder<A,K,B> decoder
public final java.util.function.BiConsumer<HttpRequest<K,B>,Callback<O>> asyncHttpFunction
public final String groupId
public final Optional<HttpOutput<K,O,R>> outputSpec
public final HttpSpec.UndoFunction<A,K,B,O> undoFunction
public final Optional<java.time.Duration> timeout
Copyright © 2019. All rights reserved.