sunkai-cai opened a new pull request #1944:
URL: https://github.com/apache/shardingsphere-elasticjob/pull/1944


   Fixes #1445 
   
    a annotation define design to discuss.  like this:
   
   ```
   @EnableElasticJob(
           cron = "0/5 * * * * ?",
           jobName = "SimpleTestJob",
           shardingTotalCount = 3,
           shardingItemParameters = "0=Beijing,1=Shanghai,2=Guangzhou",
           jobListenerTypes = {"NOOP", "LOG"},
           props = {
                   @ElasticJobProp(key = "print.title", value = "test title"),
                   @ElasticJobProp(key = "print.content", value = "test 
content")
           }
   )
   public class SimpleTestJob implements CustomJob {
       
       @Override
       public void execute(final ShardingContext shardingContext) {
       }
       
   }
   ```
   
   Changes proposed in this pull request:
   - add annotation define
   
   
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to