예제 #1
0
folly::Future<folly::Unit> MyServiceAsyncClient::future_lobDataById(apache::thrift::RpcOptions& rpcOptions, int64_t id, const std::string& data) {
  folly::Promise<folly::Unit> promise13;
  auto future14 = promise13.getFuture();
  std::unique_ptr<apache::thrift::RequestCallback> callback15(new apache::thrift::OneWayFutureCallback(std::move(promise13), channel_));
  lobDataById(rpcOptions, std::move(callback15), id, data);
  return std::move(future14);
}
예제 #2
0
folly::Future<folly::Unit> MyServiceAsyncClient::future_lobDataById(apache::thrift::RpcOptions& rpcOptions, int64_t id, const std::string& data) {
  folly::Promise<folly::Unit> promise22;
  auto future23 = promise22.getFuture();
  auto callback24 = folly::make_unique<apache::thrift::OneWayFutureCallback>(std::move(promise22), channel_);
  lobDataById(rpcOptions, std::move(callback24), id, data);
  return future23;
}
예제 #3
0
void MyServiceAsyncClient::lobDataById(std::function<void (::apache::thrift::ClientReceiveState&&)> callback, int64_t id, const std::string& data) {
  lobDataById(folly::make_unique<apache::thrift::FunctionReplyCallback>(std::move(callback)),id,data);
}
예제 #4
0
void MyServiceAsyncClient::sync_lobDataById(apache::thrift::RpcOptions& rpcOptions, int64_t id, const std::string& data) {
  apache::thrift::ClientReceiveState _returnState;
  auto callback21 = folly::make_unique<apache::thrift::ClientSyncCallback>(&_returnState, getChannel()->getEventBase(), true);
  lobDataById(rpcOptions, std::move(callback21), id, data);
  getChannel()->getEventBase()->loopForever();
}
예제 #5
0
void MyServiceAsyncClient::lobDataById(std::unique_ptr<apache::thrift::RequestCallback> callback, int64_t id, const std::string& data) {
  ::apache::thrift::RpcOptions rpcOptions;
  lobDataById(rpcOptions, std::move(callback), id, data);
}
예제 #6
0
void MyServiceAsyncClient::sync_lobDataById(apache::thrift::RpcOptions& rpcOptions, int64_t id, const std::string& data) {
  apache::thrift::ClientReceiveState _returnState;
  std::unique_ptr<apache::thrift::RequestCallback> callback12(new apache::thrift::ClientSyncCallback(&_returnState, getChannel()->getEventBase(), true));
  lobDataById(rpcOptions, std::move(callback12), id, data);
  getChannel()->getEventBase()->loopForever();
}
예제 #7
0
folly::Future<folly::Unit> MyServiceSvIf::future_lobDataById(int64_t id, std::unique_ptr<std::string> data) {
  return apache::thrift::detail::si::future([&] { return lobDataById(id, std::move(data)); });
}
예제 #8
0
folly::Future<folly::Unit> MyServiceFastSvIf::future_lobDataById(int64_t id, const std::string& data) {
  return apache::thrift::detail::si::future([&] { return lobDataById(id, data); });
}