/** * 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 */ #pragma once #include #include "thrift/compiler/test/fixtures/basic-stack-arguments/gen-cpp2/DbMixedStackArgumentsAsyncClient.h" #include "thrift/compiler/test/fixtures/basic-stack-arguments/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 cpp2 { class DbMixedStackArguments; class DbMixedStackArgumentsAsyncProcessor; class DbMixedStackArgumentsServiceInfoHolder : public apache::thrift::ServiceInfoHolder { public: apache::thrift::ServiceRequestInfoMap const& requestInfoMap() const override; static apache::thrift::ServiceRequestInfoMap staticRequestInfoMap(); }; } // namespace cpp2 namespace apache::thrift { template <> class ServiceHandler<::cpp2::DbMixedStackArguments> : public apache::thrift::ServerInterface { public: std::string_view getGeneratedName() const override { return "DbMixedStackArguments"; } typedef ::cpp2::DbMixedStackArgumentsAsyncProcessor ProcessorType; std::unique_ptr getProcessor() override; CreateMethodMetadataResult createMethodMetadata() override; 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*/, const ::std::string& /*key*/); [[deprecated("Use sync_getDataByKey1 instead")]] virtual void getDataByKey1(::std::string& /*_return*/, const ::std::string& /*key*/); virtual folly::Future<::std::string> future_getDataByKey1(const ::std::string& p_key); virtual folly::SemiFuture<::std::string> semifuture_getDataByKey1(const ::std::string& p_key); #if FOLLY_HAS_COROUTINES virtual folly::coro::Task<::std::string> co_getDataByKey1(const ::std::string& p_key); virtual folly::coro::Task<::std::string> co_getDataByKey1(apache::thrift::RequestParams params, const ::std::string& p_key); #endif virtual void async_tm_getDataByKey1(apache::thrift::HandlerCallbackPtr<::std::string> callback, const ::std::string& p_key); private: static ::cpp2::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 cpp2 { using DbMixedStackArgumentsSvIf [[deprecated("Use apache::thrift::ServiceHandler instead")]] = ::apache::thrift::ServiceHandler; } // namespace cpp2 namespace cpp2 { class DbMixedStackArgumentsSvNull : public ::apache::thrift::ServiceHandler { public: void getDataByKey0(::std::string& /*_return*/, std::unique_ptr<::std::string> /*key*/) override; void getDataByKey1(::std::string& /*_return*/, const ::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<::cpp2::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<::cpp2::DbMixedStackArguments>* iface) : iface_(iface) {} ~DbMixedStackArgumentsAsyncProcessor() override {} }; } // namespace cpp2