sink.h
Go to the documentation of this file.
1 /*
2  * Copyright 2019 Amazon.com, Inc. or its affiliates. All Rights Reserved.
3  *
4  * Licensed under the Apache License, Version 2.0 (the "License").
5  * You may not use this file except in compliance with the License.
6  * A copy of the License is located at
7  *
8  * http://aws.amazon.com/apache2.0
9  *
10  * or in the "license" file accompanying this file. This file is distributed
11  * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
12  * express or implied. See the License for the specific language governing
13  * permissions and limitations under the License.
14  */
15 
16 #pragma once
17 
18 #include <chrono>
19 
20 namespace Aws {
21 namespace DataFlow {
22 
23 template<typename T>
24 class Sink {
25 public:
26  virtual bool enqueue(T&& value) = 0;
27  virtual bool enqueue(T& value) = 0;
28  virtual bool tryEnqueue(
29  T& value,
30  const std::chrono::microseconds &duration) = 0;
31  virtual bool tryEnqueue(
32  T&& value,
33  const std::chrono::microseconds &duration) = 0;
34  virtual void clear() = 0;
35 };
36 
37 } // namespace DataFlow
38 } // namespace Aws
virtual bool tryEnqueue(T &value, const std::chrono::microseconds &duration)=0
virtual bool enqueue(T &&value)=0
virtual void clear()=0


dataflow_lite
Author(s): AWS RoboMaker
autogenerated on Fri May 7 2021 02:18:22