Giter Site home page Giter Site logo

quartz-redis's Introduction

quartz-redis

A JobStore of Quartz Scheduler using Redis that supports data storage and distributed lock. δΈ­ζ–‡

Used by

πŸ‘‰ Attemper: A distributed,multi-tenancy,job-flow scheduling application πŸ‘ˆ

Github
Gitee

Features

  • Support redis's distributed lock
  • Support redis's cluster and sentinel mode

Configurations

  • Add dependency to pom.xml
<dependency>
	<groupId>com.github.attemper</groupId>
	<artifactId>quartz-redis</artifactId>
	<version>0.9.3</version>
</dependency>
  • Config org.quartz.jobStore.xxx To use quartz-redis,you can config like the following properties in quartz.properties. If you want to use it in spring-boot apps, it's the same configurations in .yml or .properties
# job store class
org.quartz.jobStore.class = com.github.quartz.impl.redisjobstore.RedisJobStore

# redis host (optional)
org.quartz.jobStore.host = <default is localhost>

# redis password (optional)
org.quartz.jobStore.password = <default is null>

# redis port (optional)
org.quartz.jobStore.port = <default is 6379>

# redis database (optional)
org.quartz.jobStore.database = <default is 0>

# see https://lettuce.io/core/release/reference/index.html#redisuri.uri-syntax
org.quartz.jobStore.uri = <you can use it replace host/password/port/database,like redis://localhost>

# redis cluster mode
org.quartz.jobStore.clusterNodes = <using comma-delimited list uri>

# redis sentinel mode
org.quartz.jobStore.sentinelNodes = <using comma-delimited list uri>

# redis sentinel matser name
org.quartz.jobStore.sentinelMaster = <master node name>

# enable ssl or not (optional)
org.quartz.jobStore.ssl = <default is false>
  • you should config one of
    • host,password,port and database
    • uri
    • clusterNodes
    • sentinelNodes and sentinelMaster

Dependencies

quartz-redis depends on the flowing project

<dependency>
	<groupId>com.github.attemper</groupId>
	<artifactId>quartz-core</artifactId>
	<version>2.3.2.2</version>
</dependency>
<dependency>
	<groupId>io.lettuce</groupId>
	<artifactId>lettuce-core</artifactId>
	<version>5.x</version>
</dependency>
<dependency>
	<groupId>com.fasterxml.jackson.core</groupId>
	<artifactId>jackson-databind</artifactId>
	<version>2.x</version>
</dependency>

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.