KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > jboss > jms > client > ConnectionDelegate


1 /*
2  * JBoss, the OpenSource J2EE webOS
3  *
4  * Distributable under LGPL license.
5  * See terms of license at gnu.org.
6  */

7 package org.jboss.jms.client;
8
9 import java.util.Enumeration JavaDoc;
10
11 import javax.jms.ExceptionListener JavaDoc;
12 import javax.jms.JMSException JavaDoc;
13
14 import org.jboss.jms.destination.JBossTemporaryDestination;
15
16 /**
17  * The implementation of a connection
18  *
19  * @author <a HREF="mailto:adrian@jboss.org>Adrian Brock</a>
20  * @version $Revision: 1.3 $
21  */

22 public interface ConnectionDelegate
23    extends Lifecycle
24 {
25    // Constants -----------------------------------------------------
26

27    // Public --------------------------------------------------------
28

29    /**
30     * Create a session
31     *
32     * @param transacted whether the session is transacted
33     * @param the acknowledgement mode
34     * @return the session
35     * @throws JMSException for any error
36     */

37    SessionDelegate createSession(boolean isXA, boolean transacted, int acknowledgeMode) throws JMSException JavaDoc;
38
39    /**
40     * Retrieve the extension property names
41     *
42     * @return an enumeration of extension properties
43     * @throws JMSException for any error
44     */

45    Enumeration JavaDoc getJMSXPropertyNames() throws JMSException JavaDoc;
46
47    /**
48     * Retrieve the client id
49     *
50     * @return the client id
51     * @throws JMSException for any error
52     */

53    String JavaDoc getClientID() throws JMSException JavaDoc;
54
55    /**
56     * Delete the temporary destination
57     *
58     * @param the destination to delete
59     * @throws JMSException for any error
60     */

61    void deleteTempDestination(JBossTemporaryDestination destination);
62
63    /**
64     * Set the client id
65     *
66     * @param id the client id
67     * @throws JMSException for any error
68     */

69    void setClientID(String JavaDoc id) throws JMSException JavaDoc;
70
71    /**
72     * Set the exception listener
73     *
74     * @param the new exception listener
75     * @throws JMSException for any error
76     */

77    void setExceptionListener(ExceptionListener JavaDoc listener) throws JMSException JavaDoc;
78
79    /**
80     * Start the connection
81     *
82     * @throws JMSException for any error
83     */

84    void start() throws JMSException JavaDoc;
85
86    /**
87     * Stop the connection
88     *
89     * @throws JMSException for any error
90     */

91    void stop() throws JMSException JavaDoc;
92
93    // Inner Classes --------------------------------------------------
94
}
95
Popular Tags