add publish to transaction

This commit is contained in:
Jonathan Leibiusky
2011-05-11 19:53:20 -03:00
parent 66b0a5784d
commit 86fdf63cc9
2 changed files with 22 additions and 0 deletions

View File

@@ -566,4 +566,15 @@ public class Transaction extends BinaryTransaction {
client.lastsave();
return getResponse(BuilderFactory.LONG);
}
public Response<Long> publish(String channel, String message) {
client.publish(channel, message);
return getResponse(BuilderFactory.LONG);
}
public Response<Long> publish(byte[] channel, byte[] message) {
client.publish(channel, message);
return getResponse(BuilderFactory.LONG);
}
}