-
Notifications
You must be signed in to change notification settings - Fork 0
/
MOM.java
14 lines (12 loc) · 876 Bytes
/
MOM.java
1
2
3
4
5
6
7
8
9
10
11
12
13
14
import exceptions.*;
import java.rmi.RemoteException;
public interface MOM extends java.rmi.Remote {
void MsgQ_CreateQueue(String msgQname) throws EMomError, RemoteException;
void MsgQ_CloseQueue(String msgQname) throws EMomError, RemoteException;
void MsgQ_SendMessage(String msgQname, String message, int type) throws EMomError, RemoteException;
String MsgQ_ReceiveMessage(String msgQname, int type, boolean blocking) throws EMomError, RemoteException, InterruptedException;
void MsgQ_CreateTopic(String topicName, EPublishMode mode) throws EMomError, RemoteException;
void MsgQ_CloseTopic(String topicName) throws EMomError, RemoteException;
void MsgQ_Publish(String topic, String message, int type) throws EMomError, RemoteException;
void MsgQ_Subscribe(String topic, TopicListenerInterface listener) throws EMomError, RemoteException;
}