KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > apache > activemq > broker > ConsumerBrokerExchange


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

14
15 package org.apache.activemq.broker;
16
17 import org.apache.activemq.broker.region.Destination;
18 import org.apache.activemq.broker.region.Region;
19 import org.apache.activemq.broker.region.Subscription;
20
21 /**
22  * Holds internal state in the broker for a essageConsumer
23  *
24  * @version $Revision: 1.8 $
25  */

26 public class ConsumerBrokerExchange{
27
28     private ConnectionContext connectionContext;
29     private Destination regionDestination;
30     private Region region;
31     private Subscription subscription;
32     private boolean wildcard;
33
34     /**
35      * @return the connectionContext
36      */

37     public ConnectionContext getConnectionContext(){
38         return this.connectionContext;
39     }
40
41     /**
42      * @param connectionContext the connectionContext to set
43      */

44     public void setConnectionContext(ConnectionContext connectionContext){
45         this.connectionContext=connectionContext;
46     }
47
48     /**
49      * @return the region
50      */

51     public Region getRegion(){
52         return this.region;
53     }
54
55     /**
56      * @param region the region to set
57      */

58     public void setRegion(Region region){
59         this.region=region;
60     }
61
62     /**
63      * @return the regionDestination
64      */

65     public Destination getRegionDestination(){
66         return this.regionDestination;
67     }
68
69     /**
70      * @param regionDestination the regionDestination to set
71      */

72     public void setRegionDestination(Destination regionDestination){
73         this.regionDestination=regionDestination;
74     }
75
76     /**
77      * @return the subscription
78      */

79     public Subscription getSubscription(){
80         return this.subscription;
81     }
82
83     /**
84      * @param subscription the subscription to set
85      */

86     public void setSubscription(Subscription subscription){
87         this.subscription=subscription;
88     }
89
90     /**
91      * @return the wildcard
92      */

93     public boolean isWildcard(){
94         return this.wildcard;
95     }
96
97     /**
98      * @param wildcard the wildcard to set
99      */

100     public void setWildcard(boolean wildcard){
101         this.wildcard=wildcard;
102     }
103 }
104
Popular Tags