diff options
Diffstat (limited to 'qpid/cpp')
-rw-r--r-- | qpid/cpp/src/qpid/broker/LossyLvq.cpp | 29 | ||||
-rw-r--r-- | qpid/cpp/src/qpid/broker/LossyLvq.h | 41 |
2 files changed, 70 insertions, 0 deletions
diff --git a/qpid/cpp/src/qpid/broker/LossyLvq.cpp b/qpid/cpp/src/qpid/broker/LossyLvq.cpp new file mode 100644 index 0000000000..c6b76ecb8c --- /dev/null +++ b/qpid/cpp/src/qpid/broker/LossyLvq.cpp @@ -0,0 +1,29 @@ +/* + * + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + * + */ +#include "LossyLvq.h" + +namespace qpid { +namespace broker { + +LossyLvq::LossyLvq(const std::string& n, std::auto_ptr<MessageMap> m, const QueueSettings& s, MessageStore* const ms, management::Manageable* p, Broker* b) + : Queue(n, s, ms, p, b), Lvq(n, m, s, ms, p, b), LossyQueue(n, s, ms, p, b) {} + +}} // namespace qpid::broker diff --git a/qpid/cpp/src/qpid/broker/LossyLvq.h b/qpid/cpp/src/qpid/broker/LossyLvq.h new file mode 100644 index 0000000000..e0a266ab77 --- /dev/null +++ b/qpid/cpp/src/qpid/broker/LossyLvq.h @@ -0,0 +1,41 @@ +#ifndef QPID_BROKER_LOSSYLVQ_H +#define QPID_BROKER_LOSSYLVQ_H + +/* + * + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + * + */ +#include "qpid/broker/Lvq.h" +#include "qpid/broker/LossyQueue.h" + +namespace qpid { +namespace broker { +class MessageMap; + +/** + * Combination of LossyQueue and Lvq behaviours. + */ +class LossyLvq : public Lvq, public LossyQueue +{ + public: + LossyLvq(const std::string&, std::auto_ptr<MessageMap>, const QueueSettings&, MessageStore* const, management::Manageable*, Broker*); +}; +}} // namespace qpid::broker + +#endif /*!QPID_BROKER_LOSSYLVQ_H*/ |