Code Monkey home page Code Monkey logo

jrsmq's Introduction

RSMQ: Redis Simple Message Queue for Node.js

Redis Simple Message Queue

A lightweight message queue for Java that requires no dedicated queue server. Just a Redis server.

Java implementation of https://github.com/smrchy/rsmq.

Version

com.oblac:jrsmq:1.3.0

Java implementation notes

We are trying to follow the javascript contract as much as possible, including the method and properties naming.

Example

RedisSMQ rsmq = new RedisSMQ();

rsmq.createQueue()
    .qname("myqueue")
    .exec();

String id = rsmq.sendMessage()
                .qname("myqueue")
                .message("Hello World")
                .exec();

QueueMessage msg = rsmq.receiveMessage()
                        .qname("myqueue")
                        .exec();

rsmq.deleteQueue()
    .qname("myqueue")
    .exec();

rsmq.quit();

Enjoy!

jrsmq's People

Contributors

eduardolundgren avatar igr avatar mdelapenya avatar tosmun-sonrai avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

jrsmq's Issues

Method not found when migrating to jedis4

Hi,
we are trying to version up dependencies to reduce the impacts of vulnerabilities.
and we encounter a problem when upgrading the jedis to version 4.
the error is:

An attempt was made to call a method that does not exist. The attempt was made from the following location:
    com.oblac.jrsmq.cmd.BaseQueueCmd.getQueue(BaseQueueCmd.java:51)
The following method did not exist:
    redis.clients.jedis.Transaction.time()Lredis/clients/jedis/Response;

does jrsmq has a plan to version its dependency with the newer release? (now it depends on jedis 2.10.2, which has vulnerabilities)
or if there are any recommended alternatives? (since I noticed the source code is not updated for a long term)

Example application with jrsmq

Hi, I'd love to try to use this library but I can't figure out how to set up the listener for the receiver. If you can guide me to some kind of an example with spring boot, I'd love to add an example

Fix javadocs warnings

I.e:
/home/travis/build/wedeploy/jrsmq/src/main/java/com/wedeploy/jrsmq/cmd/DeleteQueueCmd.java:32: warning: no @param for qname public DeleteQueueCmd qname(String qname) {

Update travis with Xanadu credentials

   > Could not get unknown property 'wedeployRepo' for object of type org.gradle.api.internal.artifacts.repositories.DefaultMavenArtifactRepository.

Warnings raised during build

Hey,

there are many warnings being raised when building:

    Cloning repository [wedeploy/jrsmq]
Cloning into 'jrsmq'...
remote: Counting objects: 60, done.
remote: Compressing objects: 100% (46/46), done.
remote: Total 60 (delta 9), reused 38 (delta 4), pack-reused 0
Unpacking objects: 100% (60/60), done.
    Executing gradle command: [install]
      Logs at [/dev/tty]
:compileJava
Download https://repo1.maven.org/maven2/redis/clients/jedis/2.9.0/jedis-2.9.0.pom
Download https://repo1.maven.org/maven2/org/apache/commons/commons-pool2/2.4.2/commons-pool2-2.4.2.pom
Download https://repo1.maven.org/maven2/redis/clients/jedis/2.9.0/jedis-2.9.0.jar
Download https://repo1.maven.org/maven2/org/apache/commons/commons-pool2/2.4.2/commons-pool2-2.4.2.jar
:processResources NO-SOURCE
:classes
:jar
:javadoc
/private/var/folders/hb/wvttlxt51xl_m1wmtrj_k4sh0000gn/T/tmp.SRuNJEbN/jrsmq/src/main/java/com/wedeploy/jrsmq/QueueAttributes.java:30: warning: no @return
        public int vt() {
                   ^
/private/var/folders/hb/wvttlxt51xl_m1wmtrj_k4sh0000gn/T/tmp.SRuNJEbN/jrsmq/src/main/java/com/wedeploy/jrsmq/QueueAttributes.java:37: warning: no @return
        public int delay() {
                   ^
/private/var/folders/hb/wvttlxt51xl_m1wmtrj_k4sh0000gn/T/tmp.SRuNJEbN/jrsmq/src/main/java/com/wedeploy/jrsmq/QueueAttributes.java:44: warning: no @return
        public int maxSize() {
                   ^
/private/var/folders/hb/wvttlxt51xl_m1wmtrj_k4sh0000gn/T/tmp.SRuNJEbN/jrsmq/src/main/java/com/wedeploy/jrsmq/QueueAttributes.java:51: warning: no @return
        public long totalRecv() {
                    ^
/private/var/folders/hb/wvttlxt51xl_m1wmtrj_k4sh0000gn/T/tmp.SRuNJEbN/jrsmq/src/main/java/com/wedeploy/jrsmq/QueueAttributes.java:58: warning: no @return
        public long totalSent() {
                    ^
/private/var/folders/hb/wvttlxt51xl_m1wmtrj_k4sh0000gn/T/tmp.SRuNJEbN/jrsmq/src/main/java/com/wedeploy/jrsmq/QueueAttributes.java:65: warning: no @return

It'd be good to get rid of them ๐Ÿ˜

Thx!

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.