You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by ff...@apache.org on 2020/11/26 14:44:15 UTC

[camel] branch camel-3.6.x updated: [CAMEL-15893]onJobExecute method of org.apache.camel.routepolicy.quartz2.ScheduledRoutePolicy should be public

This is an automated email from the ASF dual-hosted git repository.

ffang pushed a commit to branch camel-3.6.x
in repository https://gitbox.apache.org/repos/asf/camel.git


The following commit(s) were added to refs/heads/camel-3.6.x by this push:
     new 1692672  [CAMEL-15893]onJobExecute method of org.apache.camel.routepolicy.quartz2.ScheduledRoutePolicy should be public
1692672 is described below

commit 16926725c2832d32aae1cd9d02d8b9b4ee3f544b
Author: Freeman Fang <fr...@gmail.com>
AuthorDate: Thu Nov 26 09:31:58 2020 -0500

    [CAMEL-15893]onJobExecute method of org.apache.camel.routepolicy.quartz2.ScheduledRoutePolicy should be public
    
    (cherry picked from commit c872c83878ff087e63a15b89d1b119363d54d3b5)
---
 .../java/org/apache/camel/routepolicy/quartz/ScheduledRoutePolicy.java  | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/components/camel-quartz/src/main/java/org/apache/camel/routepolicy/quartz/ScheduledRoutePolicy.java b/components/camel-quartz/src/main/java/org/apache/camel/routepolicy/quartz/ScheduledRoutePolicy.java
index 49f07bd..f1d1a99 100644
--- a/components/camel-quartz/src/main/java/org/apache/camel/routepolicy/quartz/ScheduledRoutePolicy.java
+++ b/components/camel-quartz/src/main/java/org/apache/camel/routepolicy/quartz/ScheduledRoutePolicy.java
@@ -57,7 +57,7 @@ public abstract class ScheduledRoutePolicy extends RoutePolicySupport
 
     protected abstract Trigger createTrigger(Action action, Route route) throws Exception;
 
-    protected void onJobExecute(Action action, Route route) throws Exception {
+    public void onJobExecute(Action action, Route route) throws Exception {
         LOG.debug("Scheduled Event notification received. Performing action: {} on route: {}", action, route.getId());
 
         ServiceStatus routeStatus = route.getCamelContext().getRouteController().getRouteStatus(route.getId());