Skip to content

Latest commit

 

History

History
41 lines (31 loc) · 1016 Bytes

README.md

File metadata and controls

41 lines (31 loc) · 1016 Bytes

Jedisque

Jedisque is a minimal java client for Disque.

Jedisque uses Jedis as a redis client.

How do I use it?

To use it just:

<dependency>
    <groupId>com.github.xetorthio</groupId>
    <artifactId>jedisque</artifactId>
    <version>x.y.z</version>
    <type>jar</type>
    <scope>compile</scope>
</dependency>

Please replace x.y.z version with one of the available versions.

Jedisque q = new Jedisque(
			new URI("disque://192.168.0.1:7711"),
			new URI("disque://192.168.0.4:8822")
		);
String jobId = q.addJob("foo", "bar", 10000);
Jedisque q = new Jedisque(
			new URI("disque://192.168.0.1:7711"),
			new URI("disque://192.168.0.4:8822")
		);
List<Job> jobs = q.getJob("foo", "foo2");

For more usage examples check the tests.

And you are done!