Package com.opencloud.sentinel.common
Enum SubscriptionReplicationTrigger
- java.lang.Object
-
- java.lang.Enum<SubscriptionReplicationTrigger>
-
- com.opencloud.sentinel.common.SubscriptionReplicationTrigger
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<SubscriptionReplicationTrigger>
public enum SubscriptionReplicationTrigger extends java.lang.Enum<SubscriptionReplicationTrigger>
Indicates the point at which a subscription leg should trigger the start of session replication.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description DISABLED
Indicates that session replication should never be initiated by the leg.INITIAL_REQUEST
Indicates that session replication should be initiated as soon as an initial SUBSCRIBE or REFER request is seen on the leg.NOOP
Indicates that session replication decision shall not be made by the leg.SUCCESS_RESPONSE
Indicates that session replication should be initiated when a success (2xx) response for the original SUBSCRIBE or REFER request is seen on the leg.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
occursBefore(SubscriptionReplicationTrigger otherTrigger)
Indicates whether this trigger occurs earlier in the call sequence than the given trigger.static SubscriptionReplicationTrigger
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static SubscriptionReplicationTrigger[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
DISABLED
public static final SubscriptionReplicationTrigger DISABLED
Indicates that session replication should never be initiated by the leg.
-
NOOP
public static final SubscriptionReplicationTrigger NOOP
Indicates that session replication decision shall not be made by the leg.
-
INITIAL_REQUEST
public static final SubscriptionReplicationTrigger INITIAL_REQUEST
Indicates that session replication should be initiated as soon as an initial SUBSCRIBE or REFER request is seen on the leg.
-
SUCCESS_RESPONSE
public static final SubscriptionReplicationTrigger SUCCESS_RESPONSE
Indicates that session replication should be initiated when a success (2xx) response for the original SUBSCRIBE or REFER request is seen on the leg.
-
-
Method Detail
-
values
public static SubscriptionReplicationTrigger[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (SubscriptionReplicationTrigger c : SubscriptionReplicationTrigger.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static SubscriptionReplicationTrigger valueOf(java.lang.String name)
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:
java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is null
-
occursBefore
public boolean occursBefore(SubscriptionReplicationTrigger otherTrigger)
Indicates whether this trigger occurs earlier in the call sequence than the given trigger. The sequence is: INITIAL_REQUEST, SUCCESS_RESPONSE- Parameters:
otherTrigger
- the trigger value to compare this value to- Returns:
- true if this trigger occurs before the given trigger in the call sequence.
-
-