MegasearchThreadPoolServer.h 1.3 KB
Newer Older
Y
yu yunfeng 已提交
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24
/*******************************************************************************
 * Copyright 上海赜睿信息科技有限公司(Zilliz) - All Rights Reserved
 * Unauthorized copying of this file, via any medium is strictly prohibited.
 * Proprietary and confidential.
 ******************************************************************************/

#pragma once

#include <thrift/server/TThreadPoolServer.h>


namespace zilliz {
namespace vecwise {
namespace server {

class MegasearchThreadPoolServer : public apache::thrift::server::TThreadPoolServer {
 public:
    MegasearchThreadPoolServer(
        const std::shared_ptr<apache::thrift::TProcessor>& processor,
        const std::shared_ptr<apache::thrift::transport::TServerTransport>& serverTransport,
        const std::shared_ptr<apache::thrift::transport::TTransportFactory>& transportFactory,
        const std::shared_ptr<apache::thrift::protocol::TProtocolFactory>& protocolFactory,
        const std::shared_ptr<apache::thrift::concurrency::ThreadManager>& threadManager
        = apache::thrift::concurrency::ThreadManager::newSimpleThreadManager());
Y
yu yunfeng 已提交
25

Y
yu yunfeng 已提交
26 27 28 29 30 31 32 33
 protected:
    void onClientConnected(const std::shared_ptr<apache::thrift::server::TConnectedClient>& pClient) override ;
    void onClientDisconnected(apache::thrift::server::TConnectedClient* pClient) override ;
};

}
}
}