Enum Class StorageForwardingPolicy
java.lang.Object
java.lang.Enum<StorageForwardingPolicy>
com.inductiveautomation.ignition.gateway.storeforward.strategy.StorageForwardingPolicy
- All Implemented Interfaces:
Serializable,Comparable<StorageForwardingPolicy>,Constable
An enumeration that represents the storage forwarding policy.
This is used for determining where a store and forward engine should forward data from when storing to the final data sink.
This is used for determining where a store and forward engine should forward data from when storing to the final data sink.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionForward data from either primary or secondary.Only forward data from primary.Only forward data from secondary. -
Method Summary
Modifier and TypeMethodDescriptionstatic Optional<StorageForwardingPolicy>fromString(String text) Converts a string representation of the storage forwarding policy to its enum value.booleanReturns whether the policy specifies that forwarding can occur from the secondary.booleanSlightly different fromisSecondaryForwarding()in that this returns whether the policy specifies that forwarding can only occur from the secondary.static StorageForwardingPolicyReturns the enum constant of this class with the specified name.static StorageForwardingPolicy[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
ALL
Forward data from either primary or secondary. -
PRIMARY_ONLY
Only forward data from primary. -
SECONDARY_ONLY
Only forward data from secondary.
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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 class has no constant with the specified nameNullPointerException- if the argument is null
-
isSecondaryForwarding
public boolean isSecondaryForwarding()Returns whether the policy specifies that forwarding can occur from the secondary. -
onlyForwardFromSecondary
public boolean onlyForwardFromSecondary()Slightly different fromisSecondaryForwarding()in that this returns whether the policy specifies that forwarding can only occur from the secondary. -
fromString
Converts a string representation of the storage forwarding policy to its enum value.- Parameters:
text- the string representation of the storage forwarding policy.- Returns:
- an Optional containing the storage forwarding policy, or empty if the input is null or not recognized.
-