All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.craft.atom.redis.api.handler.RedisSubscribeHandler Maven / Gradle / Ivy

There is a newer version: 2.1.1
Show newest version
package org.craft.atom.redis.api.handler;




/**
 * Handles redis subscribe events
 * 
 * @author mindwind
 * @version 1.0, Jun 6, 2013
 */
public interface RedisSubscribeHandler extends RedisPubSubHandler {
	
	/**
	 * Invoked on subscribe occur.
	 * 
	 * @param channel
	 * @param no
	 */
	void onSubscribe(String channel, int no);
	
	/**
	 * Invoked on message published to the channel.
	 * 
	 * @param channel
	 * @param message
	 */
	void onMessage(String channel, String message);
	
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy