/** * Autogenerated by Thrift for thrift/compiler/test/fixtures/basic-stack-arguments/src/module.thrift * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated @nocommit */ #include "thrift/compiler/test/fixtures/basic-stack-arguments/gen-cpp2/MyServiceFast.h" #include "thrift/compiler/test/fixtures/basic-stack-arguments/gen-cpp2/MyServiceFast.tcc" #include "thrift/compiler/test/fixtures/basic-stack-arguments/gen-cpp2/module_metadata.h" #include std::unique_ptr apache::thrift::ServiceHandler<::cpp2::MyServiceFast>::getProcessor() { return std::make_unique<::cpp2::MyServiceFastAsyncProcessor>(this); } apache::thrift::ServiceHandler<::cpp2::MyServiceFast>::CreateMethodMetadataResult apache::thrift::ServiceHandler<::cpp2::MyServiceFast>::createMethodMetadata() { return ::apache::thrift::detail::ap::createMethodMetadataMap<::cpp2::MyServiceFastAsyncProcessor>(getServiceRequestInfoMap().value().get()); } std::optional> apache::thrift::ServiceHandler<::cpp2::MyServiceFast>::getServiceRequestInfoMap() const { return __fbthrift_serviceInfoHolder.requestInfoMap(); } ::cpp2::MyServiceFastServiceInfoHolder apache::thrift::ServiceHandler<::cpp2::MyServiceFast>::__fbthrift_serviceInfoHolder; void apache::thrift::ServiceHandler<::cpp2::MyServiceFast>::async_eb_hasDataById(std::unique_ptr> callback, ::std::int64_t /*id*/) { callback->exception(apache::thrift::detail::si::create_app_exn_unimplemented("hasDataById")); } void apache::thrift::ServiceHandler<::cpp2::MyServiceFast>::async_eb_getDataById(std::unique_ptr> callback, ::std::int64_t /*id*/) { callback->exception(apache::thrift::detail::si::create_app_exn_unimplemented("getDataById")); } void apache::thrift::ServiceHandler<::cpp2::MyServiceFast>::async_eb_putDataById(std::unique_ptr> callback, ::std::int64_t /*id*/, const ::std::string& /*data*/) { callback->exception(apache::thrift::detail::si::create_app_exn_unimplemented("putDataById")); } void apache::thrift::ServiceHandler<::cpp2::MyServiceFast>::async_eb_lobDataById(std::unique_ptr /*callback*/, ::std::int64_t /*id*/, const ::std::string& /*data*/) { LOG(DFATAL) << "Function lobDataById is unimplemented"; } namespace cpp2 { const char* MyServiceFastAsyncProcessor::getServiceName() { return "MyServiceFast"; } void MyServiceFastAsyncProcessor::getServiceMetadata(apache::thrift::metadata::ThriftServiceMetadataResponse& response) { ::apache::thrift::detail::md::ServiceMetadata<::apache::thrift::ServiceHandler<::cpp2::MyServiceFast>>::gen(response); } void MyServiceFastAsyncProcessor::processSerializedCompressedRequestWithMetadata(apache::thrift::ResponseChannelRequest::UniquePtr req, apache::thrift::SerializedCompressedRequest&& serializedRequest, const apache::thrift::AsyncProcessorFactory::MethodMetadata& methodMetadata, apache::thrift::protocol::PROTOCOL_TYPES protType, apache::thrift::Cpp2RequestContext* context, folly::EventBase* eb, apache::thrift::concurrency::ThreadManager* tm) { apache::thrift::detail::ap::process(this, iface_, std::move(req), std::move(serializedRequest), methodMetadata, protType, context, eb, tm); } void MyServiceFastAsyncProcessor::executeRequest(apache::thrift::ServerRequest&& request, const apache::thrift::AsyncProcessorFactory::MethodMetadata& methodMetadata) { apache::thrift::detail::ap::execute(this, std::move(request), apache::thrift::detail::ServerRequestHelper::protocol(request), methodMetadata); } const MyServiceFastAsyncProcessor::ProcessMap& MyServiceFastAsyncProcessor::getOwnProcessMap() { return kOwnProcessMap_; } const MyServiceFastAsyncProcessor::ProcessMap MyServiceFastAsyncProcessor::kOwnProcessMap_ { {"hasDataById", {&MyServiceFastAsyncProcessor::setUpAndProcess_hasDataById, &MyServiceFastAsyncProcessor::setUpAndProcess_hasDataById, &MyServiceFastAsyncProcessor::executeRequest_hasDataById, &MyServiceFastAsyncProcessor::executeRequest_hasDataById}}, {"getDataById", {&MyServiceFastAsyncProcessor::setUpAndProcess_getDataById, &MyServiceFastAsyncProcessor::setUpAndProcess_getDataById, &MyServiceFastAsyncProcessor::executeRequest_getDataById, &MyServiceFastAsyncProcessor::executeRequest_getDataById}}, {"putDataById", {&MyServiceFastAsyncProcessor::setUpAndProcess_putDataById, &MyServiceFastAsyncProcessor::setUpAndProcess_putDataById, &MyServiceFastAsyncProcessor::executeRequest_putDataById, &MyServiceFastAsyncProcessor::executeRequest_putDataById}}, {"lobDataById", {&MyServiceFastAsyncProcessor::setUpAndProcess_lobDataById, &MyServiceFastAsyncProcessor::setUpAndProcess_lobDataById, &MyServiceFastAsyncProcessor::executeRequest_lobDataById, &MyServiceFastAsyncProcessor::executeRequest_lobDataById}}, }; apache::thrift::ServiceRequestInfoMap const& MyServiceFastServiceInfoHolder::requestInfoMap() const { static folly::Indestructible requestInfoMap{staticRequestInfoMap()}; return *requestInfoMap; } apache::thrift::ServiceRequestInfoMap MyServiceFastServiceInfoHolder::staticRequestInfoMap() { apache::thrift::ServiceRequestInfoMap requestInfoMap = { {"hasDataById", { true, apache::thrift::RpcKind::SINGLE_REQUEST_SINGLE_RESPONSE, "MyServiceFast.hasDataById", std::nullopt, apache::thrift::concurrency::NORMAL, std::nullopt}}, {"getDataById", { true, apache::thrift::RpcKind::SINGLE_REQUEST_SINGLE_RESPONSE, "MyServiceFast.getDataById", std::nullopt, apache::thrift::concurrency::NORMAL, std::nullopt}}, {"putDataById", { true, apache::thrift::RpcKind::SINGLE_REQUEST_SINGLE_RESPONSE, "MyServiceFast.putDataById", std::nullopt, apache::thrift::concurrency::NORMAL, std::nullopt}}, {"lobDataById", { true, apache::thrift::RpcKind::SINGLE_REQUEST_NO_RESPONSE, "MyServiceFast.lobDataById", std::nullopt, apache::thrift::concurrency::NORMAL, std::nullopt}}, }; return requestInfoMap; } } // namespace cpp2