Package org.eclipse.hono.tracing
Class MessageAnnotationsExtractAdapter
- java.lang.Object
-
- org.eclipse.hono.tracing.MessageAnnotationsExtractAdapter
-
- All Implemented Interfaces:
io.opentracing.propagation.TextMap
,io.opentracing.propagation.TextMapExtract
,io.opentracing.propagation.TextMapInject
,Iterable<Map.Entry<String,String>>
public class MessageAnnotationsExtractAdapter extends Object implements io.opentracing.propagation.TextMap
An adapter for extracting properties from an AMQP 1.0 message's message annotations.
-
-
Constructor Summary
Constructors Constructor Description MessageAnnotationsExtractAdapter(org.apache.qpid.proton.message.Message message, String propertiesMapName)
Creates an adapter for a message.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Iterator<Map.Entry<String,String>>
iterator()
void
put(String key, String value)
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface java.lang.Iterable
forEach, spliterator
-
-
-
-
Constructor Detail
-
MessageAnnotationsExtractAdapter
public MessageAnnotationsExtractAdapter(org.apache.qpid.proton.message.Message message, String propertiesMapName)
Creates an adapter for a message.- Parameters:
message
- The message.propertiesMapName
- The name of the message annotation of type map that contains the properties to extract.- Throws:
NullPointerException
- if any of the parameters arenull
.
-
-