Record Class RabbitMqOutboundRouting
java.lang.Object
java.lang.Record
io.camunda.connector.rabbitmq.outbound.model.RabbitMqOutboundRouting
public record RabbitMqOutboundRouting(@NotBlank String exchange, @NotBlank String routingKey, FactoryRoutingData routingData)
extends Record
Represents the routing information for a RabbitMQ outbound request. This record is structured to
support flat JSON deserialization for compatibility with specific JSON structures, facilitating
easier integration with RabbitMQ configurations.
Note: The strategic use of @JsonCreator for deserialization and @JsonUnwrapped for serialization is specifically chosen to ensure compatibility with previous versions during backporting efforts. This approach overcomes limitations and guarantees that JSON structure management remains consistent across versions, facilitating the maintenance and extension of functionality without breaking changes.
-
Constructor Summary
ConstructorsConstructorDescriptionRabbitMqOutboundRouting(@NotBlank String exchange, @NotBlank String routingKey, FactoryRoutingData routingData) Creates an instance of aRabbitMqOutboundRoutingrecord class.RabbitMqOutboundRouting(String exchange, String routingKey, String virtualHost, String hostName, String port) -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.@NotBlank Stringexchange()Returns the value of theexchangerecord component.final inthashCode()Returns a hash code value for this object.Returns the value of theroutingDatarecord component.@NotBlank StringReturns the value of theroutingKeyrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
RabbitMqOutboundRouting
-
RabbitMqOutboundRouting
public RabbitMqOutboundRouting(@NotBlank @NotBlank String exchange, @NotBlank @NotBlank String routingKey, FactoryRoutingData routingData) Creates an instance of aRabbitMqOutboundRoutingrecord class.- Parameters:
exchange- the value for theexchangerecord componentroutingKey- the value for theroutingKeyrecord componentroutingData- the value for theroutingDatarecord component
-
-
Method Details
-
toString
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. -
hashCode
public final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. All components in this record class are compared withObjects::equals(Object,Object). -
exchange
Returns the value of theexchangerecord component.- Returns:
- the value of the
exchangerecord component
-
routingKey
Returns the value of theroutingKeyrecord component.- Returns:
- the value of the
routingKeyrecord component
-
routingData
Returns the value of theroutingDatarecord component.- Returns:
- the value of the
routingDatarecord component
-