001 /** 002 * Licensed to the Apache Software Foundation (ASF) under one or more 003 * contributor license agreements. See the NOTICE file distributed with 004 * this work for additional information regarding copyright ownership. 005 * The ASF licenses this file to You under the Apache License, Version 2.0 006 * (the "License"); you may not use this file except in compliance with 007 * the License. You may obtain a copy of the License at 008 * 009 * http://www.apache.org/licenses/LICENSE-2.0 010 * 011 * Unless required by applicable law or agreed to in writing, software 012 * distributed under the License is distributed on an "AS IS" BASIS, 013 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 014 * See the License for the specific language governing permissions and 015 * limitations under the License. 016 */ 017 package org.apache.activemq.broker; 018 019 import org.apache.activemq.broker.region.Destination; 020 import org.apache.activemq.broker.region.Region; 021 import org.apache.activemq.broker.region.Subscription; 022 023 /** 024 * Holds internal state in the broker for a essageConsumer 025 * 026 * @version $Revision: 1.8 $ 027 */ 028 public class ConsumerBrokerExchange { 029 030 private ConnectionContext connectionContext; 031 private Destination regionDestination; 032 private Region region; 033 private Subscription subscription; 034 private boolean wildcard; 035 036 /** 037 * @return the connectionContext 038 */ 039 public ConnectionContext getConnectionContext() { 040 return this.connectionContext; 041 } 042 043 /** 044 * @param connectionContext the connectionContext to set 045 */ 046 public void setConnectionContext(ConnectionContext connectionContext) { 047 this.connectionContext = connectionContext; 048 } 049 050 /** 051 * @return the region 052 */ 053 public Region getRegion() { 054 return this.region; 055 } 056 057 /** 058 * @param region the region to set 059 */ 060 public void setRegion(Region region) { 061 this.region = region; 062 } 063 064 /** 065 * @return the regionDestination 066 */ 067 public Destination getRegionDestination() { 068 return this.regionDestination; 069 } 070 071 /** 072 * @param regionDestination the regionDestination to set 073 */ 074 public void setRegionDestination(Destination regionDestination) { 075 this.regionDestination = regionDestination; 076 } 077 078 /** 079 * @return the subscription 080 */ 081 public Subscription getSubscription() { 082 return this.subscription; 083 } 084 085 /** 086 * @param subscription the subscription to set 087 */ 088 public void setSubscription(Subscription subscription) { 089 this.subscription = subscription; 090 } 091 092 /** 093 * @return the wildcard 094 */ 095 public boolean isWildcard() { 096 return this.wildcard; 097 } 098 099 /** 100 * @param wildcard the wildcard to set 101 */ 102 public void setWildcard(boolean wildcard) { 103 this.wildcard = wildcard; 104 } 105 }