Enum SubscriptionReplicationTrigger

    • 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.
    • Enum Constant Detail

      • 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 name
        java.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.