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

public Class RequestReplySenderContext<C, RES>

extends SenderContext<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 sending data over the wire with the idea that you'll wait for some response from the recipient.
Author
Marcin Grzejszczak
Since
1.10.0

Field Summary

Modifier and TypeField and Description
private RES

Constructor Summary

AccessConstructor and Description
public
RequestReplySenderContext(Propagator.Setter<C>
propagator setter
setter
,
Kind
kind
kind
)

Creates a new instance of RequestReplySenderContext.

public
RequestReplySenderContext(Propagator.Setter<C>
propagator setter
setter
)

Creates a new instance of a Kind#CLIENT RequestReplySenderContext.

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.SenderContext:
getCarriergetKindgetRemoteServiceAddressgetRemoteServiceNamegetSettersetCarriersetRemoteServiceAddresssetRemoteServiceName

Field Detail

responseback to summary
private RES response
Annotations
@Nullable

Constructor Detail

RequestReplySenderContextback to summary
public RequestReplySenderContext(Propagator.Setter<C> setter, Kind kind)

Creates a new instance of RequestReplySenderContext.

Parameters
setter:Propagator.Setter<C>

propagator setter

kind:Kind

kind

RequestReplySenderContextback to summary
public RequestReplySenderContext(Propagator.Setter<C> setter)

Creates a new instance of a Kind#CLIENT RequestReplySenderContext.

Parameters
setter:Propagator.Setter<C>

propagator setter

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