Interface UdpProxyConfig.HashPolicyOrBuilder
-
- All Superinterfaces:
com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder
- All Known Implementing Classes:
UdpProxyConfig.HashPolicy,UdpProxyConfig.HashPolicy.Builder
- Enclosing class:
- UdpProxyConfig
public static interface UdpProxyConfig.HashPolicyOrBuilder extends com.google.protobuf.MessageOrBuilder
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description StringgetKey()A given key will be used to compute the hash used by hash-based load balancing algorithms.com.google.protobuf.ByteStringgetKeyBytes()A given key will be used to compute the hash used by hash-based load balancing algorithms.UdpProxyConfig.HashPolicy.PolicySpecifierCasegetPolicySpecifierCase()booleangetSourceIp()The source IP will be used to compute the hash used by hash-based load balancing algorithms.booleanhasKey()A given key will be used to compute the hash used by hash-based load balancing algorithms.booleanhasSourceIp()The source IP will be used to compute the hash used by hash-based load balancing algorithms.-
Methods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getDefaultInstanceForType, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
-
-
-
Method Detail
-
hasSourceIp
boolean hasSourceIp()
The source IP will be used to compute the hash used by hash-based load balancing algorithms.
bool source_ip = 1 [(.validate.rules) = { ... }- Returns:
- Whether the sourceIp field is set.
-
getSourceIp
boolean getSourceIp()
The source IP will be used to compute the hash used by hash-based load balancing algorithms.
bool source_ip = 1 [(.validate.rules) = { ... }- Returns:
- The sourceIp.
-
hasKey
boolean hasKey()
A given key will be used to compute the hash used by hash-based load balancing algorithms. In certain cases there is a need to direct different UDP streams jointly towards the selected set of endpoints. A possible use-case is VoIP telephony, where media (RTP) and its corresponding control (RTCP) belong to the same logical session, although they travel in separate streams. To ensure that these pair of streams are load-balanced on session level (instead of individual stream level), dynamically created listeners can use the same hash key for each stream in the session.
string key = 2 [(.validate.rules) = { ... }- Returns:
- Whether the key field is set.
-
getKey
String getKey()
A given key will be used to compute the hash used by hash-based load balancing algorithms. In certain cases there is a need to direct different UDP streams jointly towards the selected set of endpoints. A possible use-case is VoIP telephony, where media (RTP) and its corresponding control (RTCP) belong to the same logical session, although they travel in separate streams. To ensure that these pair of streams are load-balanced on session level (instead of individual stream level), dynamically created listeners can use the same hash key for each stream in the session.
string key = 2 [(.validate.rules) = { ... }- Returns:
- The key.
-
getKeyBytes
com.google.protobuf.ByteString getKeyBytes()
A given key will be used to compute the hash used by hash-based load balancing algorithms. In certain cases there is a need to direct different UDP streams jointly towards the selected set of endpoints. A possible use-case is VoIP telephony, where media (RTP) and its corresponding control (RTCP) belong to the same logical session, although they travel in separate streams. To ensure that these pair of streams are load-balanced on session level (instead of individual stream level), dynamically created listeners can use the same hash key for each stream in the session.
string key = 2 [(.validate.rules) = { ... }- Returns:
- The bytes for key.
-
getPolicySpecifierCase
UdpProxyConfig.HashPolicy.PolicySpecifierCase getPolicySpecifierCase()
-
-