I released the first version of spinach, a scalable Java Disque client based on netty. spinach is built on top of the lettuce client which provides SSL and Unix domain connections in addition to plaintext connections.
Basic usage
DisqueClient client = new DisqueClient("host");
DisqueConnection<String, String> connection = client.connect().sync();
DisqueCommands<String, String> sync = connection.sync();
String jobId = sync.addjob("queue", "body", 1, TimeUnit.MINUTES);
Job<String, String> job = sync.getjob("queue");
connection.ackjob(job.getId());
Features
- Works with Java 6, 7 and 8
- synchronous and asynchronous APIs
- SSL and Unix Domain Socket connections
- Codecs (for UTF8/bit/JSON etc. representation of your data)
For complete information on spinach see the websites:
Links
Maven coordinates:
<dependency>
<groupId>biz.paluch.redis</groupId>
<artifactId>spinach</artifactId>
<version>0.1</version>
</dependency>
Any feedback is appreciated or create issues on GitHub.