public interface TraceableMessage
| Modifier and Type | Method and Description |
|---|---|
void |
filterTracingAnnotations(BiConsumer<String,Object> filter)
Allows the tracing layer to filter out tracing related details from the full
set of message annotations that a message might be carrying.
|
Object |
getTracingAnnotation(String key)
Gets some trace specific message annotation that was previously applied to
the given message either locally or by a remote peer.
|
Object |
getTracingContext(String key)
Gets some trace related context from the message for use by the tracing
implementation.
|
Object |
removeTracingAnnotation(String key)
Remove some trace specific message annotation that was previously applied to
the given message either locally or by a remote peer.
|
Object |
removeTracingContext(String key)
Removes some trace related context from the message.
|
Object |
setTracingAnnotation(String key,
Object value)
Sets some trace specific message annotation that was previously applied to
the given message either locally or by a remote peer.
|
Object |
setTracingContext(String key,
Object value)
Sets some trace related context from the message for use by the tracing
implementation.
|
Object getTracingContext(String key)
Allows the Tracing implementation to store context data into the message without the message needing to know what the types or structure of that data is.
key - The name of the context element to be looked up.Object setTracingContext(String key, Object value)
Allows the Tracing implementation to store context data into the message without the message needing to know what the types or structure of that data is.
key - The key that the tracing context element should be stored under.value - The value to store under the given key.Object removeTracingContext(String key)
key - The key of the tracing context element that should be cleared.Object getTracingAnnotation(String key)
key - The name of the tracing annotation data to retrieve.Object removeTracingAnnotation(String key)
key - The name of the tracing annotation data to remove.Object setTracingAnnotation(String key, Object value)
key - The name of the tracing annotation data to store the trace data under.value - The value to store under the given key.void filterTracingAnnotations(BiConsumer<String,Object> filter)
filter - The filter used to consume tracing related message annotations of interest.Copyright © 2013–2019 The Apache Software Foundation. All rights reserved.