Class DefaultMessage
java.lang.Object
io.gravitee.gateway.reactive.api.message.AbstractMessage
io.gravitee.gateway.reactive.api.message.DefaultMessage
- All Implemented Interfaces:
Message,TracingMessage
-
Nested Class Summary
Nested Classes -
Field Summary
Fields inherited from class io.gravitee.gateway.reactive.api.message.AbstractMessage
attributes, internalAttributes, metadata, SOURCE_TIMESTAMP, sourceTimestamp, timestamp -
Method Summary
Modifier and TypeMethodDescriptionvoidack()MUST be called to acknowledge this message when it has been well-processed.voidaddTracingAttribute(String key, String value) Allow to add extra tracing attribute used to trace this messagebuilder()Set the content of the message.Set the content of the message.Behavior to apply when the underlying span will be ended.voidend()Run the end behavior defined byTracingMessage.doOnEnd(Runnable)headers()Get the headers of the message.Return tracing attributes based on Semantic Conventions for MessagingMethods inherited from class io.gravitee.gateway.reactive.api.message.AbstractMessage
attribute, attribute, attributeAsList, attributeNames, attributes, internalAttribute, internalAttribute, internalAttributeNames, internalAttributes, metadata, removeAttribute, removeInternalAttribute, timestamp, unmodifiableMetadataMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface io.gravitee.gateway.reactive.api.message.Message
attribute, attribute, attributeAsList, attributeNames, attributes, content, correlationId, error, error, headers, id, internalAttribute, internalAttribute, internalAttributeNames, internalAttributes, metadata, parentCorrelationId, removeAttribute, removeInternalAttribute, timestampMethods inherited from interface io.gravitee.gateway.reactive.api.tracing.message.TracingMessage
injectSpanContext, isTraceable
-
Method Details
-
headers
Description copied from interface:MessageGet the headers of the message. -
content
Description copied from interface:MessageSet the content of the message. -
content
Description copied from interface:MessageSet the content of the message. -
ack
public void ack()Description copied from interface:MessageMUST be called to acknowledge this message when it has been well-processed. -
doOnEnd
Description copied from interface:TracingMessageBehavior to apply when the underlying span will be ended.- Specified by:
doOnEndin interfaceTracingMessage
-
end
public void end()Description copied from interface:TracingMessageRun the end behavior defined byTracingMessage.doOnEnd(Runnable)- Specified by:
endin interfaceTracingMessage
-
tracingAttributes
Description copied from interface:TracingMessageReturn tracing attributes based on Semantic Conventions for Messaging- Specified by:
tracingAttributesin interfaceTracingMessage- Returns:
- map of tracing attributes
-
addTracingAttribute
Description copied from interface:TracingMessageAllow to add extra tracing attribute used to trace this message- Specified by:
addTracingAttributein interfaceTracingMessage- Parameters:
key- the key of the span attributevalue- the value associated
-
builder
-