switch message with channel on the low level publish

This commit is contained in:
Costin Leau
2011-01-20 17:09:29 +02:00
parent 5d093cd5cc
commit 1a463ff810
3 changed files with 4 additions and 4 deletions

View File

@@ -43,11 +43,11 @@ public interface RedisPubSubCommands {
/**
* Publishes the given message to the given channel.
*
* @param message message to publish
* @param channel the channel to publish to
* @param message message to publish
* @return the number of clients that received the message
*/
Long publish(byte[] message, byte[] channel);
Long publish(byte[] channel, byte[] message);
/**
* Subscribes the connection to the given channels.

View File

@@ -1609,7 +1609,7 @@ public class JedisConnection implements RedisConnection {
// Pub/Sub functionality
//
@Override
public Long publish(byte[] message, byte[] channel) {
public Long publish(byte[] channel, byte[] message) {
try {
if (isQueueing()) {
throw new UnsupportedOperationException();

View File

@@ -1058,7 +1058,7 @@ public class JredisConnection implements RedisConnection {
}
@Override
public Long publish(byte[] message, byte[] channel) {
public Long publish(byte[] channel, byte[] message) {
throw new UnsupportedOperationException();
}