Class DefaultScheduleAndTriggerStrategy

    • Constructor Detail

      • DefaultScheduleAndTriggerStrategy

        public DefaultScheduleAndTriggerStrategy()
    • Method Detail

      • triggerEventInTransaction

        protected boolean triggerEventInTransaction​(TaskEvent event)
      • insertEventConditionOrRetryMatch

        protected boolean insertEventConditionOrRetryMatch​(TaskEvent event)
        Returns true if repolling tasks makes sense
      • retryMatchConditionForEvent

        protected boolean retryMatchConditionForEvent​(TaskEvent event)
      • isIgnorableScheduleConditionException

        protected boolean isIgnorableScheduleConditionException​(TaskConditionModel condition,
                                                                java.lang.Exception e)
      • triggerEvent

        public boolean triggerEvent​(java.lang.String uniqueId)
        Description copied from interface: ScheduleAndTriggerStrategy
        Triggers a task event.
        Specified by:
        triggerEvent in interface ScheduleAndTriggerStrategy
        Returns:
        true if re-polling on this node is advisable based on the result of the trigger operation
      • triggerEvent

        public boolean triggerEvent​(java.lang.String uniqueId,
                                    java.util.Date expirationDate)
        Description copied from interface: ScheduleAndTriggerStrategy
        Triggers a task event.
        Specified by:
        triggerEvent in interface ScheduleAndTriggerStrategy
        Parameters:
        uniqueId - id of event
        expirationDate - expiration date for event
      • scheduleTaskInternal

        protected void scheduleTaskInternal​(TaskModel task)
      • doScheduleInTransaction

        protected void doScheduleInTransaction​(TaskModel task)
      • scheduleTaskWithoutConditions

        protected void scheduleTaskWithoutConditions​(TaskModel task)
      • scheduleTaskWithConditions

        protected void scheduleTaskWithConditions​(TaskModel task)
      • finishScheduleTaskWithConditions

        protected void finishScheduleTaskWithConditions​(TaskModel task,
                                                        java.util.Date scheduledExecutionDate)
      • prepareScheduleTaskWithConditions

        protected void prepareScheduleTaskWithConditions​(TaskModel task)
      • insertScheduleConditionOrRetryMatch

        protected void insertScheduleConditionOrRetryMatch​(TaskModel task,
                                                           PK taskPK,
                                                           TaskConditionModel cond)
      • disableNestedTransactions

        protected void disableNestedTransactions​(SessionContext loclCtx)
      • setModelService

        public void setModelService​(ModelService modelService)