diff options
author | Alan Conway <aconway@apache.org> | 2007-01-16 20:17:50 +0000 |
---|---|---|
committer | Alan Conway <aconway@apache.org> | 2007-01-16 20:17:50 +0000 |
commit | bc84e62cc549ac2d751a45d61a867354c84c60d6 (patch) | |
tree | 160824086ea1edfd2d28f153626d378d69d0f516 /cpp/lib/common/sys/ConnectionInputHandlerFactory.h | |
parent | 0df54842626c3cc065cad1a2595458f54253a178 (diff) | |
download | qpid-python-bc84e62cc549ac2d751a45d61a867354c84c60d6.tar.gz |
* Renamed Session* classes to Connection* to align with AMQP spec
- broker::SessionHandlerImpl -> broker::Connection
- broker::SessionHandlerImplFactory -> broker::ConnectionFactory
- sys::SessionHandler -> ConnectionInputHandler
- sys::SessionHandlerFactory -> ConnectionInputHandlerFactory
git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/branches/qpid.0-9@496848 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'cpp/lib/common/sys/ConnectionInputHandlerFactory.h')
-rw-r--r-- | cpp/lib/common/sys/ConnectionInputHandlerFactory.h | 46 |
1 files changed, 46 insertions, 0 deletions
diff --git a/cpp/lib/common/sys/ConnectionInputHandlerFactory.h b/cpp/lib/common/sys/ConnectionInputHandlerFactory.h new file mode 100644 index 0000000000..5bb5e17704 --- /dev/null +++ b/cpp/lib/common/sys/ConnectionInputHandlerFactory.h @@ -0,0 +1,46 @@ +/* + * + * 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. + * + */ +#ifndef _ConnectionInputHandlerFactory_ +#define _ConnectionInputHandlerFactory_ + +#include <boost/noncopyable.hpp> + +namespace qpid { +namespace sys { + +class SessionContext; +class ConnectionInputHandler; + +/** + * Callback interface used by the Acceptor to + * create a ConnectionInputHandler for each new connection. + */ +class ConnectionInputHandlerFactory : private boost::noncopyable +{ + public: + virtual ConnectionInputHandler* create(SessionContext* ctxt) = 0; + virtual ~ConnectionInputHandlerFactory(){} +}; + +}} + + +#endif |