📄 usermbean.java
字号:
/* * JORAM: Java(TM) Open Reliable Asynchronous Messaging * Copyright (C) 2005 - ScalAgent Distributed Technologies * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation; either * version 2.1 of the License, or any later version. * * This library is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public * License along with this library; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 * USA. * * Initial developer(s): Nicolas Tachker (ScalAgent DT) * Contributor(s): */package org.objectweb.joram.client.jms.admin;import org.objectweb.joram.client.jms.Message;import org.objectweb.joram.client.jms.admin.Subscription;import java.net.ConnectException;import java.util.List;import javax.jms.JMSException;public interface UserMBean { /** Returns a string view of this <code>User</code> instance. */ public String toString(); /** Returns the user name. */ public String getName(); /** * Removes this user. */ public void delete() throws ConnectException, AdminException; /** * Admin method setting a given dead message queue for this user. */ public void setDMQ(DeadMQueue dmq) throws ConnectException, AdminException; /** * Admin method setting a given value as the threshold for this user. */ public void setThreshold(int thresh) throws ConnectException, AdminException; public void setNbMaxMsg(String subName, int nbMaxMsg) throws ConnectException, AdminException; public int getNbMaxMsg(String subName) throws ConnectException, AdminException; /** * Returns the dead message queue for this user, null if not set. */ public DeadMQueue getDMQ() throws ConnectException, AdminException; /** * Returns the threshold for this user, -1 if not set. */ public int getThreshold() throws ConnectException, AdminException; /** * Returns the subscriptions owned by a user. */ public List getSubscriptionList() throws ConnectException, AdminException; public Subscription[] getSubscriptions() throws AdminException, ConnectException; /** * Returns a subscription. */ public String getSubscriptionString(String subName) throws ConnectException, AdminException; public Subscription getSubscription(String subName) throws AdminException, ConnectException; public String[] getMessageIds(String subName) throws ConnectException, AdminException; public Message readMessage(String subName, String msgId) throws AdminException, ConnectException, JMSException; public void deleteMessage(String subName, String msgId) throws AdminException, ConnectException; public void clearSubscription(String subName) throws AdminException, ConnectException; /** Returns the identifier of the user's proxy. */ public String getProxyId();}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -