Package com.newrelic.api.agent
Class MessageProduceParameters.Builder
- java.lang.Object
-
- com.newrelic.api.agent.MessageProduceParameters.Builder
-
- All Implemented Interfaces:
MessageProduceParameters.Build
,MessageProduceParameters.DestinationNameParameter
,MessageProduceParameters.DestinationTypeParameter
,MessageProduceParameters.OutboundHeadersParameter
- Enclosing class:
- MessageProduceParameters
protected static class MessageProduceParameters.Builder extends java.lang.Object implements MessageProduceParameters.DestinationTypeParameter, MessageProduceParameters.DestinationNameParameter, MessageProduceParameters.OutboundHeadersParameter, MessageProduceParameters.Build
-
-
Constructor Summary
Constructors Constructor Description Builder(java.lang.String library)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description MessageProduceParameters
build()
Build the finalMessageProduceParameters
for the API call.MessageProduceParameters.OutboundHeadersParameter
destinationName(java.lang.String destinationName)
Set the destination name of the external call.MessageProduceParameters.DestinationNameParameter
destinationType(DestinationType destinationType)
Set the destination type of the external call.MessageProduceParameters.Build
outboundHeaders(OutboundHeaders outboundHeaders)
Set the outbound headers on the external call.
-
-
-
Method Detail
-
destinationType
public MessageProduceParameters.DestinationNameParameter destinationType(DestinationType destinationType)
Description copied from interface:MessageProduceParameters.DestinationTypeParameter
Set the destination type of the external call.- Specified by:
destinationType
in interfaceMessageProduceParameters.DestinationTypeParameter
- Parameters:
destinationType
- the destination type of the external call- Returns:
- the next builder interface
-
destinationName
public MessageProduceParameters.OutboundHeadersParameter destinationName(java.lang.String destinationName)
Description copied from interface:MessageProduceParameters.DestinationNameParameter
Set the destination name of the external call.- Specified by:
destinationName
in interfaceMessageProduceParameters.DestinationNameParameter
- Parameters:
destinationName
- the destination name of the external call- Returns:
- the next builder interface
-
outboundHeaders
public MessageProduceParameters.Build outboundHeaders(OutboundHeaders outboundHeaders)
Description copied from interface:MessageProduceParameters.OutboundHeadersParameter
Set the outbound headers on the external call. Pass null if you don't want the headers on the request/transaction to be modified.- Specified by:
outboundHeaders
in interfaceMessageProduceParameters.OutboundHeadersParameter
- Parameters:
outboundHeaders
- the outbound headers for the external call- Returns:
- the completed HttpParameters object
-
build
public MessageProduceParameters build()
Description copied from interface:MessageProduceParameters.Build
Build the finalMessageProduceParameters
for the API call.- Specified by:
build
in interfaceMessageProduceParameters.Build
- Returns:
- the completed GenericParameters object
-
-