Record Class RouteTopologyDumper.TopologyEdge

java.lang.Object
java.lang.Record
org.apache.camel.spi.RouteTopologyDumper.TopologyEdge
Record Components:
fromRouteId - the source route id (the route that sends to the endpoint)
toRouteId - the target route id (the route that consumes from the endpoint)
endpoint - the shared endpoint URI (scheme:context-path, query parameters stripped)
connectionType - the type of connection: "internal" for direct/seda, "external" for remote components
Enclosing interface:
RouteTopologyDumper

public static record RouteTopologyDumper.TopologyEdge(String fromRouteId, String toRouteId, String endpoint, String connectionType) extends Record
An edge in the topology representing a connection between two routes via a shared endpoint.
Since:
4.21
  • Constructor Details

    • TopologyEdge

      public TopologyEdge(String fromRouteId, String toRouteId, String endpoint, String connectionType)
      Creates an instance of a TopologyEdge record class.
      Parameters:
      fromRouteId - the value for the fromRouteId record component
      toRouteId - the value for the toRouteId record component
      endpoint - the value for the endpoint record component
      connectionType - the value for the connectionType record component
  • Method Details

    • toString

      public final String 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.
      Specified by:
      toString in class Record
      Returns:
      a string representation of this object
    • 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.
      Specified by:
      hashCode in class Record
      Returns:
      a hash code value for this object
    • equals

      public final boolean equals(Object o)
      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 with Objects::equals(Object,Object).
      Specified by:
      equals in class Record
      Parameters:
      o - the object with which to compare
      Returns:
      true if this object is the same as the o argument; false otherwise.
    • fromRouteId

      public String fromRouteId()
      Returns the value of the fromRouteId record component.
      Returns:
      the value of the fromRouteId record component
    • toRouteId

      public String toRouteId()
      Returns the value of the toRouteId record component.
      Returns:
      the value of the toRouteId record component
    • endpoint

      public String endpoint()
      Returns the value of the endpoint record component.
      Returns:
      the value of the endpoint record component
    • connectionType

      public String connectionType()
      Returns the value of the connectionType record component.
      Returns:
      the value of the connectionType record component