net.hasor.rsf.hprose.server.HproseClients Maven / Gradle / Ivy
The newest version!
/**********************************************************\
| |
| hprose |
| |
| Official WebSite: http://www.hprose.com/ |
| http://www.hprose.org/ |
| |
\**********************************************************/
/**********************************************************\
* *
* HproseClients.java *
* *
* hprose clients interface for Java. *
* *
* LastModified: Aug 11, 2016 *
* Author: Ma Bingyao *
* *
\**********************************************************/
package hprose.server;
import hprose.util.concurrent.Action;
import hprose.util.concurrent.Promise;
public interface HproseClients {
String[] idlist(String topic);
boolean exist(String topic, String id);
void broadcast(String topic, Object result);
void broadcast(String topic, Object result, Action callback);
void multicast(String topic, String[] ids, Object result);
void multicast(String topic, String[] ids, Object result, Action callback);
void unicast(String topic, String id, Object result);
void unicast(String topic, String id, Object result, Action callback);
Promise push(String topic, Object result);
Promise push(String topic, String[] ids, Object result);
Promise push(String topic, String id, Object result);
}