KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > jboss > ejb > plugins > jms > JMSContainerInvokerMBean


1 /*
2  * JBoss, Home of Professional Open Source
3  * Copyright 2005, JBoss Inc., and individual contributors as indicated
4  * by the @authors tag. See the copyright.txt in the distribution for a
5  * full listing of individual contributors.
6  *
7  * This is free software; you can redistribute it and/or modify it
8  * under the terms of the GNU Lesser General Public License as
9  * published by the Free Software Foundation; either version 2.1 of
10  * the License, or (at your option) any later version.
11  *
12  * This software is distributed in the hope that it will be useful,
13  * but WITHOUT ANY WARRANTY; without even the implied warranty of
14  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
15  * Lesser General Public License for more details.
16  *
17  * You should have received a copy of the GNU Lesser General Public
18  * License along with this software; if not, write to the Free
19  * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
20  * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
21  */

22 package org.jboss.ejb.plugins.jms;
23
24 import org.jboss.metadata.MessageDrivenMetaData;
25
26 /**
27  * MBean interface.
28  *
29  * @author <a HREF="mailto:adrian@jboss.com">Adrian Brock</a>
30  * @version <tt>$Revision: 38362 $</tt>
31  */

32 public interface JMSContainerInvokerMBean extends org.jboss.system.ServiceMBean
33 {
34    /**
35     * Get the minimum pool size
36     *
37     * @return the minimum pool size
38     */

39    int getMinPoolSize();
40
41    /**
42     * Set the minimum pool size
43     *
44     * @param minPoolSize the size
45     */

46    void setMinPoolSize(int minPoolSize);
47
48    /**
49     * Get the maximum pool size
50     *
51     * @return the maximum pool size
52     */

53    int getMaxPoolSize();
54
55    /**
56     * Set the maximum pool size
57     *
58     * @param maxPoolSize the size
59     */

60    void setMaxPoolSize(int maxPoolSize);
61
62    /**
63     * Get the keep alive millis
64     *
65     * @return the milliseconds
66     */

67    long getKeepAliveMillis();
68
69    /**
70     * Set the keep alive millis
71     *
72     * @param keepAlive the milliseconds
73     */

74    void setKeepAliveMillis(long keepAlive);
75
76    /**
77     * Get the maximum number of messages
78     *
79     * @return the number of messages
80     */

81    int getMaxMessages();
82
83    /**
84     * Set the maximum number of messages
85     *
86     * @param maxMessages the number of messages
87     */

88    void setMaxMessages(int maxMessages);
89
90    /**
91     * Get the message driven metadata
92     *
93     * @return the metadata
94     */

95    MessageDrivenMetaData getMetaData();
96
97    /**
98     * Get whether delivery is active
99     *
100     * @return true when active
101     */

102    boolean getDeliveryActive();
103
104    /**
105     * Get whether JBossMQ destinations should be constructed
106     * when the destination is not in JNDI
107     *
108     * @return true to create
109     */

110    boolean getCreateJBossMQDestination();
111
112    /**
113     * Start delivery
114     *
115     * @throws Exception for any error
116     */

117    void startDelivery() throws Exception JavaDoc;
118
119    /**
120     * Stop delivery
121     *
122     * @throws Exception for any error
123     */

124    void stopDelivery() throws Exception JavaDoc;
125 }
126
Popular Tags