tapestry-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Sven Homburg (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (TAP5-2562) remove periodic job from PeriodicExecutor by name
Date Tue, 06 Sep 2016 08:52:21 GMT

    [ https://issues.apache.org/jira/browse/TAP5-2562?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15466860#comment-15466860
] 

Sven Homburg commented on TAP5-2562:
------------------------------------

here my idea:

{code:title=PeriodicExecutorImpl.java|borderStyle=solid}
    public void removeJob(String name)
    {
       Job jobToRemove = null;
       
       for(Job job : jobs)
       {
          if (name.equals(job.getName())
          {
             jobToRemove = job;
            break;
          }
       }

      if (jobToRemove != null)
         removeJob(jobToRemove);
    }
{code}

> remove periodic job from PeriodicExecutor by name
> -------------------------------------------------
>
>                 Key: TAP5-2562
>                 URL: https://issues.apache.org/jira/browse/TAP5-2562
>             Project: Tapestry 5
>          Issue Type: Wish
>          Components: tapestry-ioc
>    Affects Versions: 5.4.1
>            Reporter: Sven Homburg
>            Priority: Minor
>
> it would nice to let us remove a periodic job from executor by the name of the job.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message