// Copyright 2020 Google LLC // // 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 GOOGLE_CLOUD_CPP_GOOGLE_CLOUD_PUBSUB_INTERNAL_SUBSCRIPTION_SESSION_H #define GOOGLE_CLOUD_CPP_GOOGLE_CLOUD_PUBSUB_INTERNAL_SUBSCRIPTION_SESSION_H #include "google/cloud/pubsub/backoff_policy.h" #include "google/cloud/pubsub/internal/session_shutdown_manager.h" #include "google/cloud/pubsub/internal/subscriber_stub.h" #include "google/cloud/pubsub/internal/subscription_concurrency_control.h" #include "google/cloud/pubsub/retry_policy.h" #include "google/cloud/pubsub/subscriber_connection.h" #include "google/cloud/pubsub/version.h" #include "google/cloud/completion_queue.h" #include "google/cloud/status_or.h" #include #include #include namespace google { namespace cloud { namespace pubsub_internal { inline namespace GOOGLE_CLOUD_CPP_PUBSUB_NS { future CreateSubscriptionSession( pubsub::Subscription const& subscription, pubsub::SubscriberOptions const& options, std::shared_ptr const& stub, google::cloud::CompletionQueue const& executor, std::string client_id, pubsub::SubscriberConnection::SubscribeParams p, std::unique_ptr retry_policy, std::unique_ptr backoff_policy); future CreateTestingSubscriptionSession( pubsub::Subscription const& subscription, pubsub::SubscriberOptions const& options, std::shared_ptr const& stub, google::cloud::CompletionQueue const& executor, pubsub::SubscriberConnection::SubscribeParams p, std::unique_ptr retry_policy = {}, std::unique_ptr backoff_policy = {}); } // namespace GOOGLE_CLOUD_CPP_PUBSUB_NS } // namespace pubsub_internal } // namespace cloud } // namespace google #endif // GOOGLE_CLOUD_CPP_GOOGLE_CLOUD_PUBSUB_INTERNAL_SUBSCRIPTION_SESSION_H