Class ReceiverContext<C>
java.lang.Object
io.micrometer.observation.Observation.Context
io.micrometer.observation.transport.ReceiverContext<C>
- Type Parameters:
C- type of the carrier object
- All Implemented Interfaces:
Observation.ContextView
- Direct Known Subclasses:
RequestReplyReceiverContext
Context used when receiving data over the wire without requiring any confirmation to be
sent to sender of the data.
- Since:
- 1.10.0
-
Constructor Summary
ConstructorsConstructorDescriptionReceiverContext(Propagator.Getter<C> getter) Creates a new instance of aKind.CONSUMERReceiverContext.ReceiverContext(Propagator.Getter<C> getter, Kind kind) Creates a new instance ofReceiverContext. -
Method Summary
Modifier and TypeMethodDescriptiongetKind()Return optional address for the service that will be called.Return optional name for the service from which the message is polled.voidsetCarrier(C carrier) voidsetRemoteServiceAddress(String remoteServiceAddress) Set optional service address for the service that will be called.voidsetRemoteServiceName(String remoteServiceName) Set optional name for the service from which the message is polled.Methods 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, toString
-
Constructor Details
-
ReceiverContext
Creates a new instance ofReceiverContext.- Parameters:
getter- propagator getterkind- kind
-
ReceiverContext
Creates a new instance of aKind.CONSUMERReceiverContext.- Parameters:
getter- propagator getter
-
-
Method Details
-
getCarrier
-
setCarrier
-
getGetter
-
getKind
-
getRemoteServiceName
Return optional name for the service from which the message is polled.- Returns:
- optional name for the service from which the message is polled
-
setRemoteServiceName
Set optional name for the service from which the message is polled.- Parameters:
remoteServiceName- name of the service from which the message is polled
-
getRemoteServiceAddress
Return optional address for the service that will be called.- Returns:
- optional address for the service that will be called
-
setRemoteServiceAddress
Set optional service address for the service that will be called.- Parameters:
remoteServiceAddress- service address for the service that will be called
-