title: Quartz Scheduler Weekly schedule with repeat count and Weekdays or Random days
body: <p>I am implementing Quartz scheduler for my webapplication.
    I have to schedule weekly on monday,tuesday repeat 3weeks</p>
  
  <p>Two ways in Quartz Scheduler,</p>
  
  <p>1)simple Trigger:</p>
  
  <pre><code>Trigger trigger = newTrigger()
  .withIdentity("trigger1","group1")
  .startAt(runTime)
  .withSchedule(weeklyOnDayAndHourAndMinute(DateBuilder.MONDAY,10,10))            
  .build();
  </code></pre>
  
  <p>Here i can mention only one weekday in weeklyOnDayAndHourAndMinute method,I couldnt mention multiple weekdays</p>
  
  <p>2)Cron Trigger:</p>
  
  <pre><code>Trigger trigger = newTrigger()
  .withIdentity("trigger1","group1")
  .startAt(runTime)           
  .withSchedule(cronSchedule("0 10 15 ? * MON-FRI"))          
  .build()
  </code></pre>
  
  <p>Here i couldnt mention repeat count or repeat interval</p>
  
  <p>Please guide me in right direction. Thanks in advance..</p>