Package com.newrelic.api.agent
Class MessageProduceParameters
- java.lang.Object
-
- com.newrelic.api.agent.MessageProduceParameters
-
- All Implemented Interfaces:
ExternalParameters
public class MessageProduceParameters extends java.lang.Object implements ExternalParameters
Creates the parameters to report a message that was sent to a message queue. This should be used withTracedMethod.reportAsExternal(ExternalParameters). A fluent builder is provided to allow for easy usage and management of this API.- Since:
- 3.36.0
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceMessageProduceParameters.Buildprotected static classMessageProduceParameters.Builderstatic interfaceMessageProduceParameters.DestinationNameParameterstatic interfaceMessageProduceParameters.DestinationTypeParameterstatic interfaceMessageProduceParameters.OutboundHeadersParameter
-
Constructor Summary
Constructors Modifier Constructor Description protectedMessageProduceParameters(MessageProduceParameters messageProduceParameters)protectedMessageProduceParameters(java.lang.String library, DestinationType destinationType, java.lang.String destinationName, OutboundHeaders outboundHeaders)Deprecated.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.StringgetCloudAccountId()java.lang.StringgetCloudRegion()java.lang.StringgetDestinationName()DestinationTypegetDestinationType()java.lang.StringgetHost()java.lang.StringgetLibrary()java.lang.StringgetOtelLibrary()OutboundHeadersgetOutboundHeaders()java.lang.IntegergetPort()static MessageProduceParameters.DestinationTypeParameterlibrary(java.lang.String library)Set the name of the library.static MessageProduceParameters.DestinationTypeParameterlibrary(java.lang.String library, java.lang.String otelLibrary)Set the name of the library.
-
-
-
Constructor Detail
-
MessageProduceParameters
@Deprecated protected MessageProduceParameters(java.lang.String library, DestinationType destinationType, java.lang.String destinationName, OutboundHeaders outboundHeaders)Deprecated.
-
MessageProduceParameters
protected MessageProduceParameters(MessageProduceParameters messageProduceParameters)
-
-
Method Detail
-
getDestinationName
public java.lang.String getDestinationName()
-
getDestinationType
public DestinationType getDestinationType()
-
getOutboundHeaders
public OutboundHeaders getOutboundHeaders()
-
getCloudAccountId
public java.lang.String getCloudAccountId()
-
getCloudRegion
public java.lang.String getCloudRegion()
-
getLibrary
public java.lang.String getLibrary()
-
getOtelLibrary
public java.lang.String getOtelLibrary()
-
getHost
public java.lang.String getHost()
-
getPort
public java.lang.Integer getPort()
-
library
public static MessageProduceParameters.DestinationTypeParameter library(java.lang.String library)
Set the name of the library.- Parameters:
library- the name of the library- Returns:
- the next builder interface
-
library
public static MessageProduceParameters.DestinationTypeParameter library(java.lang.String library, java.lang.String otelLibrary)
Set the name of the library. And the OTEL known name of that library.- Parameters:
library- the name of the libraryotelLibrary- the OTEL known name of the library- Returns:
- the next builder interface
-
-