Class AbstractTemplateObservation.Context
- All Implemented Interfaces:
io.micrometer.observation.Observation.ContextView
- Direct Known Subclasses:
SqsTemplateObservation.Context
- Enclosing class:
- AbstractTemplateObservation
public abstract static class AbstractTemplateObservation.Context
extends io.micrometer.observation.transport.SenderContext<Map<String,Object>>
SenderContext for message listeners.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturn the destination name.Message<?>Return the message.Return the message id.SendResult<?>Return the send result.voidsetSendResult(SendResult<?> sendResult) Set the send result for this context.Methods inherited from class io.micrometer.observation.transport.SenderContext
getCarrier, getKind, getRemoteServiceAddress, getRemoteServiceName, getSetter, setCarrier, setRemoteServiceAddress, setRemoteServiceNameMethods inherited from class io.micrometer.observation.Observation.Context
addHighCardinalityKeyValue, addHighCardinalityKeyValues, addLowCardinalityKeyValue, addLowCardinalityKeyValues, clear, computeIfAbsent, containsKey, get, getAllKeyValues, getContextualName, getError, getHighCardinalityKeyValue, getHighCardinalityKeyValues, getLowCardinalityKeyValue, getLowCardinalityKeyValues, getName, getOrDefault, getParentObservation, getRequired, put, remove, removeHighCardinalityKeyValue, removeHighCardinalityKeyValues, removeLowCardinalityKeyValue, removeLowCardinalityKeyValues, setContextualName, setError, setName, setParentObservation, toStringMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface io.micrometer.observation.Observation.ContextView
getOrDefault
-
Constructor Details
-
Context
Build a messaging sender context.- Parameters:
message- the message.destinationName- the destination name.
-
-
Method Details
-
setSendResult
Set the send result for this context.- Parameters:
sendResult- the send result from message sending operation.
-
getMessageId
Return the message id.- Returns:
- the message id.
-
getSendResult
Return the send result.- Returns:
- the send result.
-
getMessage
Return the message.- Returns:
- the message.
-
getDestinationName
Return the destination name.- Returns:
- the destination name.
-