(EquivalentAddressGroup eag, int loadBalancingWeight,
boolean isHealthy, String hostname, ImmutableMap<String, Object> endpointMetadata)
| 70 | abstract ImmutableMap<String, Object> endpointMetadata(); |
| 71 | |
| 72 | static LbEndpoint create(EquivalentAddressGroup eag, int loadBalancingWeight, |
| 73 | boolean isHealthy, String hostname, ImmutableMap<String, Object> endpointMetadata) { |
| 74 | if (loadBalancingWeight == 0) { |
| 75 | loadBalancingWeight = 1; |
| 76 | } |
| 77 | return new AutoValue_Endpoints_LbEndpoint( |
| 78 | eag, loadBalancingWeight, isHealthy, hostname, endpointMetadata); |
| 79 | } |
| 80 | |
| 81 | // Only for testing. |
| 82 | @VisibleForTesting |