Git Product home page Git Product logo

Comments (10)

xetorthio avatar xetorthio commented on August 27, 2024

Yeap! Will fix this ASAP!
Thanks for reporting this and sorry for the delay, was on vacations :)
Will keep you updated when this is done.

from jedis.

xetorthio avatar xetorthio commented on August 27, 2024

I will be doing this tonight :)

from jedis.

xetorthio avatar xetorthio commented on August 27, 2024

Ok. So I was thinking about adding to BinaryJedis class:
public void subscribe(BinaryJedisPubSub jedisPubSub, byte[]... channels);
public Long publish(byte[] channel, byte[] message);
public void psubscribe(BinaryJedisPubSub jedisPubSub, byte[]... patterns);

And BinaryJedisPubSub will have:
public abstract void onMessage(byte[] channel, byte[] message);
public abstract void onPMessage(byte[] pattern, byte[] channel,
byte[] message);
public abstract void onSubscribe(byte[] channel, int subscribedChannels);
public abstract void onUnsubscribe(byte[] channel, int subscribedChannels);
public abstract void onPUnsubscribe(byte[] pattern, int subscribedChannels);
public abstract void onPSubscribe(byte[] pattern, int subscribedChannels);
public void unsubscribe();
public void unsubscribe(byte[]... channels);
public void subscribe(byte[]... channels);
public void psubscribe(byte[]... patterns);
public void punsubscribe();
public void punsubscribe(byte[]... patterns);

What do you think?

from jedis.

costin avatar costin commented on August 27, 2024

Yup, looks good.

from jedis.

xetorthio avatar xetorthio commented on August 27, 2024

done and pushed to master :)

from jedis.

costin avatar costin commented on August 27, 2024

Thanks - everything works fine on my side. Are there any snapshots of jedis published in some repo? I'd like to distribute my project for others to try it but I need the latest jedis available somewhere until it will be finally released.

from jedis.

xetorthio avatar xetorthio commented on August 27, 2024

sure, just published a snapshot on MavenCentral.

from jedis.

costin avatar costin commented on August 27, 2024

Can you give me the link ? I can't seem to find it.

from jedis.

xetorthio avatar xetorthio commented on August 27, 2024

sure, snapshots for the next version are here: https://oss.sonatype.org/content/repositories/snapshots/redis/clients/jedis/1.5.2-SNAPSHOT/

just make sure you are using the latest one (it is generated with a timestamp).

from jedis.

costin avatar costin commented on August 27, 2024

Thanks

from jedis.

Related Issues (20)

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.