/** * Autogenerated by Thrift for thrift/compiler/test/fixtures/basic/src/module.thrift * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated @nocommit */ #pragma once #include #include "thrift/compiler/test/fixtures/basic/gen-cpp2/DbMixedStackArgumentsAsyncClient.h" #include "thrift/compiler/test/fixtures/basic/gen-cpp2/module_types.h" namespace folly { class IOBuf; class IOBufQueue; } namespace apache { namespace thrift { class Cpp2RequestContext; class BinaryProtocolReader; class CompactProtocolReader; namespace transport { class THeader; } }} namespace test::fixtures::basic { class DbMixedStackArguments; class DbMixedStackArgumentsAsyncProcessor; class DbMixedStackArgumentsServiceInfoHolder : public apache::thrift::ServiceInfoHolder { public: apache::thrift::ServiceRequestInfoMap const& requestInfoMap() const override; static apache::thrift::ServiceRequestInfoMap staticRequestInfoMap(); }; } // namespace test::fixtures::basic namespace apache::thrift { template <> class ServiceHandler<::test::fixtures::basic::DbMixedStackArguments> : public apache::thrift::ServerInterface { public: std::string_view getGeneratedName() const override { return "DbMixedStackArguments"; } static const char* __fbthrift_thrift_uri() { return "test.dev/fixtures/basic/DbMixedStackArguments"; } typedef ::test::fixtures::basic::DbMixedStackArgumentsAsyncProcessor ProcessorType; std::unique_ptr getProcessor() override; CreateMethodMetadataResult createMethodMetadata() override; bool isThriftGenerated() const override final { return true; } private: std::optional> getServiceRequestInfoMap() const; public: virtual void sync_getDataByKey0(::std::string& /*_return*/, std::unique_ptr<::std::string> /*key*/); [[deprecated("Use sync_getDataByKey0 instead")]] virtual void getDataByKey0(::std::string& /*_return*/, std::unique_ptr<::std::string> /*key*/); virtual folly::Future> future_getDataByKey0(std::unique_ptr<::std::string> p_key); virtual folly::SemiFuture> semifuture_getDataByKey0(std::unique_ptr<::std::string> p_key); #if FOLLY_HAS_COROUTINES virtual folly::coro::Task> co_getDataByKey0(std::unique_ptr<::std::string> p_key); virtual folly::coro::Task> co_getDataByKey0(apache::thrift::RequestParams params, std::unique_ptr<::std::string> p_key); #endif virtual void async_tm_getDataByKey0(apache::thrift::HandlerCallbackPtr> callback, std::unique_ptr<::std::string> p_key); virtual void sync_getDataByKey1(::std::string& /*_return*/, std::unique_ptr<::std::string> /*key*/); [[deprecated("Use sync_getDataByKey1 instead")]] virtual void getDataByKey1(::std::string& /*_return*/, std::unique_ptr<::std::string> /*key*/); virtual folly::Future> future_getDataByKey1(std::unique_ptr<::std::string> p_key); virtual folly::SemiFuture> semifuture_getDataByKey1(std::unique_ptr<::std::string> p_key); #if FOLLY_HAS_COROUTINES virtual folly::coro::Task> co_getDataByKey1(std::unique_ptr<::std::string> p_key); virtual folly::coro::Task> co_getDataByKey1(apache::thrift::RequestParams params, std::unique_ptr<::std::string> p_key); #endif virtual void async_tm_getDataByKey1(apache::thrift::HandlerCallbackPtr> callback, std::unique_ptr<::std::string> p_key); private: static ::test::fixtures::basic::DbMixedStackArgumentsServiceInfoHolder __fbthrift_serviceInfoHolder; std::atomic __fbthrift_invocation_getDataByKey0{apache::thrift::detail::si::InvocationType::AsyncTm}; std::atomic __fbthrift_invocation_getDataByKey1{apache::thrift::detail::si::InvocationType::AsyncTm}; }; } // namespace apache::thrift namespace test::fixtures::basic { using DbMixedStackArgumentsSvIf [[deprecated("Use apache::thrift::ServiceHandler instead")]] = ::apache::thrift::ServiceHandler; } // namespace test::fixtures::basic namespace test::fixtures::basic { class DbMixedStackArgumentsSvNull : public ::apache::thrift::ServiceHandler { public: void getDataByKey0(::std::string& /*_return*/, std::unique_ptr<::std::string> /*key*/) override; void getDataByKey1(::std::string& /*_return*/, std::unique_ptr<::std::string> /*key*/) override; }; class DbMixedStackArgumentsAsyncProcessor : public ::apache::thrift::GeneratedAsyncProcessorBase { public: const char* getServiceName() override; void getServiceMetadata(apache::thrift::metadata::ThriftServiceMetadataResponse& response) override; using BaseAsyncProcessor = void; protected: ::apache::thrift::ServiceHandler<::test::fixtures::basic::DbMixedStackArguments>* iface_; public: void 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) override; void executeRequest(apache::thrift::ServerRequest&& serverRequest, const apache::thrift::AsyncProcessorFactory::MethodMetadata& methodMetadata) override; public: using ProcessFuncs = GeneratedAsyncProcessorBase::ProcessFuncs; using ProcessMap = GeneratedAsyncProcessorBase::ProcessMap; static const DbMixedStackArgumentsAsyncProcessor::ProcessMap& getOwnProcessMap(); private: static const DbMixedStackArgumentsAsyncProcessor::ProcessMap kOwnProcessMap_; private: template void setUpAndProcess_getDataByKey0(apache::thrift::ResponseChannelRequest::UniquePtr req, apache::thrift::SerializedCompressedRequest&& serializedRequest, apache::thrift::Cpp2RequestContext* ctx, folly::EventBase* eb, apache::thrift::concurrency::ThreadManager* tm); template void executeRequest_getDataByKey0(apache::thrift::ServerRequest&& serverRequest); template static apache::thrift::SerializedResponse return_getDataByKey0(apache::thrift::ContextStack* ctx, ::std::string const& _return); template static void throw_wrapped_getDataByKey0(apache::thrift::ResponseChannelRequest::UniquePtr req,int32_t protoSeqId,apache::thrift::ContextStack* ctx,folly::exception_wrapper ew,apache::thrift::Cpp2RequestContext* reqCtx); template void setUpAndProcess_getDataByKey1(apache::thrift::ResponseChannelRequest::UniquePtr req, apache::thrift::SerializedCompressedRequest&& serializedRequest, apache::thrift::Cpp2RequestContext* ctx, folly::EventBase* eb, apache::thrift::concurrency::ThreadManager* tm); template void executeRequest_getDataByKey1(apache::thrift::ServerRequest&& serverRequest); template static apache::thrift::SerializedResponse return_getDataByKey1(apache::thrift::ContextStack* ctx, ::std::string const& _return); template static void throw_wrapped_getDataByKey1(apache::thrift::ResponseChannelRequest::UniquePtr req,int32_t protoSeqId,apache::thrift::ContextStack* ctx,folly::exception_wrapper ew,apache::thrift::Cpp2RequestContext* reqCtx); public: DbMixedStackArgumentsAsyncProcessor(::apache::thrift::ServiceHandler<::test::fixtures::basic::DbMixedStackArguments>* iface) : iface_(iface) {} ~DbMixedStackArgumentsAsyncProcessor() override {} }; } // namespace test::fixtures::basic