/* * Copyright (c) Meta Platforms, Inc. and affiliates. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ #ifndef THRIFT_TEST_HANDLERS_ASYNCLOADHANDLER2_H_ #define THRIFT_TEST_HANDLERS_ASYNCLOADHANDLER2_H_ 1 #include namespace apache { namespace thrift { class AsyncLoadHandler2 : public apache::thrift::ServiceHandler { public: void async_eb_noop(std::unique_ptr> callback) override; void async_eb_onewayNoop( std::unique_ptr callback) override; void async_eb_asyncNoop( std::unique_ptr> callback) override; void async_eb_sleep( std::unique_ptr> callback, int64_t microseconds) override; void async_eb_onewaySleep( std::unique_ptr callback, int64_t microseconds) override; void sync_burn(int64_t microseconds) override; folly::Future future_burn(int64_t microseconds) override; void sync_onewayBurn(int64_t microseconds) override; folly::Future future_onewayBurn(int64_t microseconds) override; void async_eb_badSleep( std::unique_ptr> callback, int64_t microseconds) override; void async_eb_badBurn( std::unique_ptr> callback, int64_t microseconds) override; void async_eb_throwError( std::unique_ptr> callback, int32_t code) override; void async_eb_throwUnexpected( std::unique_ptr> callback, int32_t code) override; void async_eb_onewayThrow( std::unique_ptr callback, int32_t code) override; void async_eb_send( std::unique_ptr> callback, std::unique_ptr data) override; void async_eb_onewaySend( std::unique_ptr callback, std::unique_ptr data) override; void async_eb_recv( std::unique_ptr>> callback, int64_t bytes) override; void async_eb_sendrecv( std::unique_ptr>> callback, std::unique_ptr data, int64_t recvBytes) override; void sync_echo( std::string& output, std::unique_ptr data) override; folly::Future> future_echo( std::unique_ptr data) override; void async_eb_add( std::unique_ptr>, int64_t a, int64_t b) override; void async_eb_largeContainer( std::unique_ptr> callback, std::unique_ptr> items) override; void async_eb_iterAllFields( std::unique_ptr>>> callback, std::unique_ptr> items) override; }; } // namespace thrift } // namespace apache #endif // THRIFT_TEST_HANDLERS_ASYNCLOADHANDLER2_H_