Source code: mobile/jmsapi/TopicConnection.java
1 /** Java class "TopicConnection.java" generated from Poseidon for UML.
2 * Poseidon for UML is developed by <A HREF="http://www.gentleware.com">Gentleware</A>.
3 * Generated with <A HREF="http://jakarta.apache.org/velocity/">velocity</A> template engine.
4 */
5 package mobile.jmsapi;
6
7
8 /**
9 * <p>
10 * class representing connection with JMS provider in Pub-Sub mode
11 * </p>
12 */
13 public class TopicConnection extends Connection
14 {
15 ///////////////////////////////////////
16 // operations
17
18 /**
19 * bitmask
20 * </p>
21 * <p>
22 * @return TOPIC
23 */
24 protected int TYPE_MASK()
25 {
26 return TOPIC;
27 }
28
29 /**
30 * <p>
31 * Creates new TopicSession
32 * </p><p>
33 * @return new TopicSession object
34 * </p>
35 *
36 */
37 protected Session newSession()
38 {
39 return new TopicSession();
40 }
41
42
43 /**
44 * <p>
45 * Creates new TopicSession
46 * </p><p>
47 *
48 * @param _transacted determines wheather this session will be transacted
49 * </p><p>
50 * @param _ackowledgeMode determines acknowledge mode of new session
51 * </p><p>
52 * @return newly created TopicSession
53 * </p>
54 */
55 public TopicSession createTopicSession(boolean _transacted, int _acknowledgeMode) throws JMSException
56 {
57 return (TopicSession)createSession(_transacted, _acknowledgeMode);
58 } // end createTopicSession
59
60
61 } // end TopicConnection
62
63
64
65
66