KickJava   Java API By Example, From Geeks To Geeks.

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


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.state.ProducerState;
20
21 /**
22  * Holds internal state in the broker for a MessageProducer
23  *
24  * @version $Revision: 1.8 $
25  */

26 public class ProducerBrokerExchange{
27
28     private ConnectionContext connectionContext;
29     private Destination regionDestination;
30     private Region region;
31     private ProducerState producerState;
32     private boolean mutable=true;
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 mutable
50      */

51     public boolean isMutable(){
52         return this.mutable;
53     }
54
55     /**
56      * @param mutable the mutable to set
57      */

58     public void setMutable(boolean mutable){
59         this.mutable=mutable;
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 region
78      */

79     public Region getRegion(){
80         return this.region;
81     }
82
83     /**
84      * @param region the region to set
85      */

86     public void setRegion(Region region){
87         this.region=region;
88     }
89
90     /**
91      * @return the producerState
92      */

93     public ProducerState getProducerState(){
94         return this.producerState;
95     }
96
97     /**
98      * @param producerState the producerState to set
99      */

100     public void setProducerState(ProducerState producerState){
101         this.producerState=producerState;
102     }
103 }
104
Popular Tags