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 interface
MessageProduceParameters.Build
protected static class
MessageProduceParameters.Builder
static interface
MessageProduceParameters.DestinationNameParameter
static interface
MessageProduceParameters.DestinationTypeParameter
static interface
MessageProduceParameters.OutboundHeadersParameter
-
Constructor Summary
Constructors Modifier Constructor Description protected
MessageProduceParameters(MessageProduceParameters messageProduceParameters)
protected
MessageProduceParameters(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.String
getCloudAccountId()
java.lang.String
getCloudRegion()
java.lang.String
getDestinationName()
DestinationType
getDestinationType()
java.lang.String
getHost()
java.lang.String
getLibrary()
java.lang.String
getOtelLibrary()
OutboundHeaders
getOutboundHeaders()
java.lang.Integer
getPort()
static MessageProduceParameters.DestinationTypeParameter
library(java.lang.String library)
Set the name of the library.static MessageProduceParameters.DestinationTypeParameter
library(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
-
-