com.ibm.commerce.subscription.scheduler.actions

Interface SubscriptionScheduledActionCmd

    • Method Detail

      • setScheduledAction

        void setScheduledAction(java.lang.Long scheduledActionID)
        Sets the scheduled action job instance which is being processed by the command.
        Parameters:
        scheduledActionID - The unique ID of the scheduled action being processed.
      • setSubscriptionId

        void setSubscriptionId(java.lang.Long subscriptionId)
        Sets the subscription ID of the subscription being processed by this action.
        Parameters:
        subscriptionId -
      • setActionParameters

        void setActionParameters(TypedProperty actionParameters)
        Sets the action parameters for the scheduled action.
        Parameters:
        actionParameters -
      • initialize

        void initialize()
                 throws java.lang.Exception
        This method initializes the scheduled action. This method is invoked before the command is executed.
        Throws:
        java.lang.Exception
      • setExeceptionForFailure

        void setExeceptionForFailure(java.lang.Throwable cause)
        This method sets the exception which caused the command to fail.
        Parameters:
        cause - The exception which caused the command to fail.
      • getDelayBetweenRetries

        int getDelayBetweenRetries()
        This method is a call back which provides the delay between retries for a failure. This method is ideally expected to look at the exception for set the delay between retries.
        Returns:
        The delay to use between retries when the command fails.
      • getActionParameters

        TypedProperty getActionParameters()
        This method returns the action parameters for the scheduled action.
        Returns:
        The action parameters.