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

public class ReceiverContext<C> extends Observation.Context
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 Details

  • Method Details

    • getCarrier

      public C getCarrier()
    • setCarrier

      public void setCarrier(C carrier)
    • getGetter

      public Propagator.Getter<C> getGetter()
    • getKind

      public Kind getKind()
    • getRemoteServiceName

      @Nullable public String 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

      public void setRemoteServiceName(@Nullable String remoteServiceName)
      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

      @Nullable public String getRemoteServiceAddress()
      Return optional address for the service that will be called.
      Returns:
      optional address for the service that will be called
    • setRemoteServiceAddress

      public void setRemoteServiceAddress(@Nullable String remoteServiceAddress)
      Set optional service address for the service that will be called.
      Parameters:
      remoteServiceAddress - service address for the service that will be called