Package com.cxy.redisclient.integration.pubsub

Examples of com.cxy.redisclient.integration.pubsub.Publish.execute()


import com.cxy.redisclient.integration.pubsub.Subscribe;

public class PubSubService {
  public void publish(int id, String channel, String message){
    Publish command = new Publish(id, channel, message);
    command.execute();
  }
 
  public void subscribe(int id, JedisPubSub callback, String channels){
    Subscribe command = new Subscribe(id, callback, channels);
    command.execute();
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.