Package io.micronaut.configuration.kafka
Class KafkaHeaders
java.lang.Object
io.micronaut.configuration.kafka.KafkaHeaders
- All Implemented Interfaces:
io.micronaut.core.convert.ConversionServiceProvider
,io.micronaut.core.convert.value.ConvertibleMultiValues<String>
,io.micronaut.core.convert.value.ConvertibleValues<List<String>>
,io.micronaut.core.type.Headers
,io.micronaut.core.type.MutableHeaders
,io.micronaut.core.value.ValueResolver<CharSequence>
,io.micronaut.messaging.MessageHeaders
,Iterable<Map.Entry<String,
List<String>>>
A
MessageHeaders
implementation for Kafka.- Since:
- 1.0
- Author:
- Graeme Rocher
-
Field Summary
Fields inherited from interface io.micronaut.core.convert.value.ConvertibleValues
EMPTY
-
Constructor Summary
ConstructorDescriptionKafkaHeaders
(Headers headers) Deprecated.KafkaHeaders
(Headers headers, io.micronaut.core.convert.ConversionService conversionService) Constructs a new instance for the given headers. -
Method Summary
Modifier and TypeMethodDescriptionadd
(CharSequence header, CharSequence value) get
(CharSequence name) <T> Optional<T>
get
(CharSequence name, io.micronaut.core.convert.ArgumentConversionContext<T> conversionContext) getAll
(CharSequence name) names()
remove
(CharSequence header) values()
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface io.micronaut.core.convert.value.ConvertibleMultiValues
forEach, forEachValue, getFirst, getFirst, getFirst, getFirst, getFirst, isEmpty, iterator
Methods inherited from interface io.micronaut.core.convert.value.ConvertibleValues
asMap, asMap, asProperties, contains, getConversionService, getValue, getValueType, subMap, subMap, subMap
Methods inherited from interface java.lang.Iterable
forEach, spliterator
Methods inherited from interface io.micronaut.core.type.MutableHeaders
set
Methods inherited from interface io.micronaut.core.value.ValueResolver
get, get, get
-
Constructor Details
-
KafkaHeaders
Deprecated.Constructs a new instance for the given headers.- Parameters:
headers
- The kafka headers
-
KafkaHeaders
Constructs a new instance for the given headers.- Parameters:
headers
- The kafka headersconversionService
- The conversion service
-
-
Method Details
-
getAll
- Specified by:
getAll
in interfaceio.micronaut.core.convert.value.ConvertibleMultiValues<String>
-
get
- Specified by:
get
in interfaceio.micronaut.core.convert.value.ConvertibleMultiValues<String>
-
names
-
values
-
get
public <T> Optional<T> get(CharSequence name, io.micronaut.core.convert.ArgumentConversionContext<T> conversionContext) - Specified by:
get
in interfaceio.micronaut.core.value.ValueResolver<CharSequence>
-
add
- Specified by:
add
in interfaceio.micronaut.core.type.MutableHeaders
-
remove
- Specified by:
remove
in interfaceio.micronaut.core.type.MutableHeaders
-