KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > apache > activemq > command > SubscriptionInfo


1 /**
2  *
3  * Licensed to the Apache Software Foundation (ASF) under one or more
4  * contributor license agreements. See the NOTICE file distributed with
5  * this work for additional information regarding copyright ownership.
6  * The ASF licenses this file to You under the Apache License, Version 2.0
7  * (the "License"); you may not use this file except in compliance with
8  * the License. You may obtain a copy of the License at
9  *
10  * http://www.apache.org/licenses/LICENSE-2.0
11  *
12  * Unless required by applicable law or agreed to in writing, software
13  * distributed under the License is distributed on an "AS IS" BASIS,
14  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15  * See the License for the specific language governing permissions and
16  * limitations under the License.
17  */

18 package org.apache.activemq.command;
19
20 import org.apache.activemq.util.IntrospectionSupport;
21
22
23 /**
24  *
25  * @openwire:marshaller code="55"
26  * @version $Revision: 1.6 $
27  */

28 public class SubscriptionInfo implements DataStructure {
29
30     public static final byte DATA_STRUCTURE_TYPE=CommandTypes.DURABLE_SUBSCRIPTION_INFO;
31
32     protected ActiveMQDestination destination;
33     protected String JavaDoc clientId;
34     protected String JavaDoc subcriptionName;
35     protected String JavaDoc selector;
36     
37     public byte getDataStructureType() {
38         return DATA_STRUCTURE_TYPE;
39     }
40
41     /**
42      * @openwire:property version=1
43      */

44     public String JavaDoc getClientId() {
45         return clientId;
46     }
47
48     public void setClientId(String JavaDoc clientId) {
49         this.clientId = clientId;
50     }
51
52     /**
53      * @openwire:property version=1 cache=true
54      */

55     public ActiveMQDestination getDestination() {
56         return destination;
57     }
58
59     public void setDestination(ActiveMQDestination destination) {
60         this.destination = destination;
61     }
62
63     /**
64      * @openwire:property version=1
65      */

66     public String JavaDoc getSelector() {
67         return selector;
68     }
69
70     public void setSelector(String JavaDoc selector) {
71         this.selector = selector;
72     }
73
74     /**
75      * @openwire:property version=1
76      */

77     public String JavaDoc getSubcriptionName() {
78         return subcriptionName;
79     }
80
81     public void setSubcriptionName(String JavaDoc subcriptionName) {
82         this.subcriptionName = subcriptionName;
83     }
84
85     public boolean isMarshallAware() {
86         return false;
87     }
88     
89     public String JavaDoc toString() {
90         return IntrospectionSupport.toString(this);
91     }
92
93 }
94
Popular Tags