Top Description Fields Constructors Methods
io.micrometer.observation.transport

public Class RequestReplyReceiverContext<C, RES>

extends ReceiverContext<C>
implements ResponseContext<RES>
Class Inheritance
All Implemented Interfaces
io.micrometer.observation.transport.ResponseContext
Type Parameters
<C>
type of the carrier object
<RES>
type of the response object
Imports
io.micrometer.common.lang.NonNull, .Nullable

Context used when receiving data over the wire with confirmation to be sent to sender of the data.
Author
Marcin Grzejszczak
Since
1.10.0

Field Summary

Modifier and TypeField and Description
private RES

Constructor Summary

AccessConstructor and Description
public
RequestReplyReceiverContext(Propagator.Getter<C>
propagator getter
getter
,
Kind
kind
kind
)

Creates a new instance of RequestReplyReceiverContext.

public
RequestReplyReceiverContext(Propagator.Getter<C>
propagator getter
getter
)

Creates a new instance of Kind#SERVER RequestReplyReceiverContext.

Method Summary

Modifier and TypeMethod and Description
public RES
public void
setResponse(RES
the response
response
)

Implements io.micrometer.observation.transport.ResponseContext.setResponse.

Setter for the response object.
Inherited from io.micrometer.observation.transport.ReceiverContext:
getCarriergetGettergetKindgetRemoteServiceAddressgetRemoteServiceNamesetCarriersetRemoteServiceAddresssetRemoteServiceName

Field Detail

responseback to summary
private RES response
Annotations
@Nullable

Constructor Detail

RequestReplyReceiverContextback to summary
public RequestReplyReceiverContext(Propagator.Getter<C> getter, Kind kind)

Creates a new instance of RequestReplyReceiverContext.

Parameters
getter:Propagator.Getter<C>

propagator getter

kind:Kind

kind

RequestReplyReceiverContextback to summary
public RequestReplyReceiverContext(Propagator.Getter<C> getter)

Creates a new instance of Kind#SERVER RequestReplyReceiverContext.

Parameters
getter:Propagator.Getter<C>

propagator getter

Method Detail

getResponseback to summary
public RES getResponse()

Implements io.micrometer.observation.transport.ResponseContext.getResponse.

Doc from io.micrometer.observation.transport.ResponseContext.getResponse.

Getter for the response object.

Returns:RES

the response

Annotations
@Override
@Nullable
setResponseback to summary
public void setResponse(RES response)

Implements io.micrometer.observation.transport.ResponseContext.setResponse.

Doc from io.micrometer.observation.transport.ResponseContext.setResponse.

Setter for the response object.

Parameters
response:RES

the response

Annotations
@Override