Enum PrimarySource
- All Implemented Interfaces:
Serializable,Comparable<PrimarySource>,java.lang.constant.Constable
@Generated(value="jsii-pacmak/1.138.0 (build 0ca7ee8)",
date="2026-07-31T10:49:55.192Z")
@Stability(Experimental)
public enum PrimarySource
extends Enum<PrimarySource>
(experimental) Identifies which protocol in a failover configuration's protocols array is primary.
Example:
Stack stack;
RouterNetworkInterface networkInterface;
RouterInput input = RouterInput.Builder.create(stack, "FailoverInput")
.routerInputName("failover-input")
.maximumBitrate(Bitrate.mbps(10))
.routingScope(RoutingScope.REGIONAL)
.tier(RouterInputTier.INPUT_50)
.configuration(RouterInputConfiguration.failover(FailoverConfigurationProps.builder()
.networkInterface(networkInterface)
.protocols(List.of(RouterInputProtocol.rist(RistProtocolProps.builder()
.port(5000)
.recoveryLatency(Duration.millis(1000))
.build()), RouterInputProtocol.rist(RistProtocolProps.builder()
.port(5002) // Must not be consecutive with primary port
.recoveryLatency(Duration.millis(1000))
.build())))
.sourcePriority(SourcePriorityConfig.primarySecondary(PrimarySource.FIRST_SOURCE))
.build()))
.build();
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescription(experimental) The first protocol in the failover protocols array.(experimental) The second protocol in the failover protocols array. -
Method Summary
Modifier and TypeMethodDescriptionstatic PrimarySourceReturns the enum constant of this type with the specified name.static PrimarySource[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
FIRST_SOURCE
(experimental) The first protocol in the failover protocols array. -
SECOND_SOURCE
(experimental) The second protocol in the failover protocols array.
-
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum type has no constant with the specified nameNullPointerException- if the argument is null
-