Coder Social home page Coder Social logo

scuartz's Introduction

Scuartz

This is a set of Scala wrappers and DSL around the Quartz scheduling library.

Cron DSL

If you've had trouble remembering which column in the cron expression corresponds to what, this DSL is for you. Using it, you can just say Cron(hours=12) to schedule an event at 12 o'clock every day- the default for the unspecified time units is the * wildcard.

You can also use ranges like Cron(month=3 to 6) or a set of values like Cron(minutes=Set(15,20,30)). You can even use a step like Cron(dayOfMonth=1 by 5) meaning every 5th day starting with the 1st.

For week days and months you can use three-letter abbreviations so that you can tell easily which one you're talking about- isn't Cron(dayOfWeek=Mon to Fri) or Cron(month=Set(Mar,Apr,May)) more readable?

Finally, if you try to construct a cron sub-expression which not among the values allowed for the specified time unit, you will get an IllegalArgumentException.

scuartz's People

Contributors

vdichev avatar dchenbecker avatar timperrett avatar

Stargazers

Uwe Sommerlatt avatar Gun.io Robot avatar Örjan Angré (Lundberg) avatar  avatar Richard Dallaway avatar Irmo Manie avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.