Class Itinerary.Stop

java.lang.Object
org.acemq.amqp.core.Itinerary.Stop
Enclosing class:
Itinerary

public static final class Itinerary.Stop extends Object
One stop on an itinerary.
  • Method Details

    • at

      public static Itinerary.Stop at(String exchange, String routingKey)
      Parameters:
      exchange - where this stop's message goes
      routingKey - the routing key
      Returns:
      a stop, to build an itinerary out of
    • at

      public static Itinerary.Stop at(String exchange, String routingKey, String name)
      Parameters:
      exchange - where this stop's message goes
      routingKey - the routing key
      name - what to call it in a log
      Returns:
      a named stop
    • exchange

      public String exchange()
      Returns:
      the exchange, empty for the default one
    • routingKey

      public String routingKey()
      Returns:
      the routing key
    • name

      public String name()
      Returns:
      the name, or empty when the stop was never given one
    • completedAt

      public String completedAt()
      Returns:
      when this stop was completed, or empty while it has not been
    • equals

      public boolean equals(@Nullable Object other)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object