Class SubscriptionExpireScheduledActionImpl

  • All Implemented Interfaces:, ECCommand, ECTargetableCommand, TaskCommand, SubscriptionScheduledActionCmd,,,,,,

    public class SubscriptionExpireScheduledActionImpl
    extends AbstractSubscriptionScheduledActionCmdImpl
    This class will be called by the scheduler to expire a subscription or a recurring order after its end date. It performs the expiration as a 2 step process wherein, it first deletes all the future scheduled jobs of the subscription. It then updates the state of the subscription to expired as the final step. Initially the state of the action will be updated to SubscriptionServerConstants.TRANSIENT_STATE_DELETE_SUBSCRIPTION_JOBS. As the first step, it attempts to delete all the future scheduled jobs of the subscription by invoking the deleteSubscriptionJobs method. Once this is successful, the method will update the state to SubscriptionServerConstants.TRANSIENT_STATE_EXPIRE_SUBSCRIPTION. It then invokes the expireSubscription method to update the status of the subscription to EXPIRED.
    See Also:
    Serialized Form
    • Field Detail


        public static final java.lang.String COPYRIGHT
        IBM Copyright notice field.
        See Also:
        Constant Field Values
    • Constructor Detail

      • SubscriptionExpireScheduledActionImpl

        public SubscriptionExpireScheduledActionImpl()
    • Method Detail

      • getDelayBetweenRetries

        public int getDelayBetweenRetries()
        This method sets a static delay of 0 seconds for retries
        The number of seconds between retries