1 46 47 package org.mr.api.rmi.thin; 48 49 import java.rmi.RemoteException ; 50 51 61 public interface ThinMessagingInterface extends java.rmi.Remote { 62 63 71 public boolean enqueueMessage(String userKey, String queueName, String msg) throws RemoteException ; 72 79 public String denqueueMessage(String userKey, String queueName) throws RemoteException ; 80 85 public String [] getQueues() throws RemoteException ; 86 87 94 public void publishMessage(String userKey, String topicName, String msg) throws RemoteException ; 95 96 103 public void subscribe(String userKey, String topicName , int messagesToCash) throws RemoteException ; 104 105 111 public void unsubscribe(String userKey, String topicName ) throws RemoteException ; 112 119 public String [] getMessageFromTopic(String userKey, String topicName ) throws RemoteException ; 120 121 126 public String [] getTopics() throws RemoteException ; 127 } | Popular Tags |