Class Destination

java.lang.Object
com.trafficparrot.sdk.messaging.Destination
com.trafficparrot.sdk.jms.Destination
All Implemented Interfaces:
Comparable<Destination>

@Deprecated public class Destination extends Destination
Deprecated.
Use Destination instead. This class extends the new location for backward compatibility - existing SDK plugins continue to work unchanged.
  • Field Details

    • type

      public final DestinationType type
      Deprecated.
      Hides the inherited type with its com.trafficparrot.sdk.jms type. A plugin compiled against that type reads Destination.type:Lcom/trafficparrot/sdk/jms/DestinationType; and binds here; one compiled against the com.trafficparrot.sdk.messaging type reads the inherited field's descriptor and binds to the parent's. Both hold the same object.
  • Constructor Details

    • Destination

      public Destination(String name, DestinationType type)
      Deprecated.
      Creates a destination from the com.trafficparrot.sdk.messaging destination type.
      Parameters:
      name - the name of the queue or topic
      type - whether it is a queue or a topic
    • Destination

      public Destination(String name, DestinationType type)
      Deprecated.
      The constructor for plugins compiled against the com.trafficparrot.sdk.jms types.
      Parameters:
      name - the name of the queue or topic
      type - whether it is a queue or a topic
    • Destination

      public Destination(String name, DestinationType type, boolean skipDeclare, Map<String,Object> declareArguments)
      Deprecated.
      Creates a destination with every field a mapping file can set.
      Parameters:
      name - the name of the queue or topic
      type - whether it is a queue or a topic
      skipDeclare - for an AMQP broker, true to leave the destination undeclared on the broker
      declareArguments - for an AMQP broker, the arguments to declare the destination with; null for none
  • Method Details

    • compareTo

      public int compareTo(Destination other)
      Deprecated.
      The compareTo for plugins compiled when this class was Comparable<Destination>.
      Parameters:
      other - the destination to compare this one with
      Returns:
      a negative number, zero or a positive number as this destination's name, then its type, sorts before, with or after the other's