RouteDestination class
L4 routing rule weighted destination.
Constructors
- RouteDestination({required Destination destination, int? weight})
-
The main constructor.
const
-
RouteDestination.fromJson(Map<
String, dynamic> json) - From JSON.
Properties
- destination → Destination
-
Destination uniquely identifies the instances of a service to which the request/connection should be forwarded to.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- weight → int?
-
The proportion of traffic to be forwarded to the service version.
If there is only one destination in a rule, all traffic will be routed to it irrespective of the weight.
final
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited