/******************************************************************************* * Copyright 上海赜睿信息科技有限公司(Zilliz) - All Rights Reserved * Unauthorized copying of this file, via any medium is strictly prohibited. * Proprietary and confidential. ******************************************************************************/ #pragma once #include namespace zilliz { namespace vecwise { namespace server { class MegasearchThreadPoolServer : public apache::thrift::server::TThreadPoolServer { public: MegasearchThreadPoolServer( const std::shared_ptr& processor, const std::shared_ptr& serverTransport, const std::shared_ptr& transportFactory, const std::shared_ptr& protocolFactory, const std::shared_ptr& threadManager = apache::thrift::concurrency::ThreadManager::newSimpleThreadManager()); protected: void onClientConnected(const std::shared_ptr& pClient) override ; void onClientDisconnected(apache::thrift::server::TConnectedClient* pClient) override ; }; } } }