Author: gsim Date: Thu Jan 8 12:04:09 2015 New Revision: 1650259 URL: http://svn.apache.org/r1650259 Log: QPID-6299: add files missed out from last commit
Added: qpid/trunk/qpid/cpp/src/qpid/broker/LossyLvq.cpp qpid/trunk/qpid/cpp/src/qpid/broker/LossyLvq.h Added: qpid/trunk/qpid/cpp/src/qpid/broker/LossyLvq.cpp URL: http://svn.apache.org/viewvc/qpid/trunk/qpid/cpp/src/qpid/broker/LossyLvq.cpp?rev=1650259&view=auto ============================================================================== --- qpid/trunk/qpid/cpp/src/qpid/broker/LossyLvq.cpp (added) +++ qpid/trunk/qpid/cpp/src/qpid/broker/LossyLvq.cpp Thu Jan 8 12:04:09 2015 @@ -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 Added: qpid/trunk/qpid/cpp/src/qpid/broker/LossyLvq.h URL: http://svn.apache.org/viewvc/qpid/trunk/qpid/cpp/src/qpid/broker/LossyLvq.h?rev=1650259&view=auto ============================================================================== --- qpid/trunk/qpid/cpp/src/qpid/broker/LossyLvq.h (added) +++ qpid/trunk/qpid/cpp/src/qpid/broker/LossyLvq.h Thu Jan 8 12:04:09 2015 @@ -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*/ --------------------------------------------------------------------- To unsubscribe, e-mail: commits-unsubscr...@qpid.apache.org For additional commands, e-mail: commits-h...@qpid.apache.org