1 21 22 package com.rift.coad.daemon.messageservice; 24 25 26 import java.rmi.Remote ; 28 import java.rmi.RemoteException ; 29 import java.util.List ; 30 31 32 37 public interface MessageService extends Remote { 38 39 42 public final static String JNDI_URL = "message/MessageService"; 43 44 51 public int getThreadPoolSize() throws RemoteException , 52 MessageServiceException; 53 54 55 62 public void setThreadPoolSize(int size) throws RemoteException , 63 MessageServiceException; 64 65 66 73 public List listNamedQueues() throws RemoteException , 74 MessageServiceException; 75 76 77 85 public List listMessagesForNamedQueue(String queueName) throws 86 RemoteException , MessageServiceException; 87 88 89 96 public void purgeNamedQueue(String queueName) throws RemoteException , 97 MessageServiceException; 98 } 99 | Popular Tags |