This is an automated email from the ASF dual-hosted git repository.

lizhanhui pushed a commit to branch v5.0-rc2
in repository https://gitbox.apache.org/repos/asf/rocketmq-client-cpp.git

commit 1087e58063ece28125d4e25279c9b1683a98ba37
Author: Li Zhanhui <[email protected]>
AuthorDate: Mon Aug 8 17:14:39 2022 +0800

    Add copyright header
---
 examples/ons/ExampleAsyncProducer.cpp                    | 16 ++++++++++++++++
 examples/ons/ExampleBroadcastingPushConsumer.cpp         | 16 ++++++++++++++++
 .../ExampleBroadcastingPushConsumerWithOffsetStore.cpp   | 16 ++++++++++++++++
 examples/ons/ExampleOnewayProducer.cpp                   | 16 ++++++++++++++++
 examples/ons/ExampleOrderProducer.cpp                    | 16 ++++++++++++++++
 examples/ons/ExampleOrderPushConsumer.cpp                | 16 ++++++++++++++++
 examples/ons/ExampleProducer.cpp                         | 16 ++++++++++++++++
 examples/ons/ExamplePushConsumer.cpp                     | 16 ++++++++++++++++
 examples/ons/ExamplePushConsumerWithThrottle.cpp         | 16 ++++++++++++++++
 examples/ons/ExampleTimedMessage.cpp                     | 16 ++++++++++++++++
 examples/ons/ExampleTransactionProducer.cpp              | 16 ++++++++++++++++
 11 files changed, 176 insertions(+)

diff --git a/examples/ons/ExampleAsyncProducer.cpp 
b/examples/ons/ExampleAsyncProducer.cpp
index e7693c4..5a560d8 100644
--- a/examples/ons/ExampleAsyncProducer.cpp
+++ b/examples/ons/ExampleAsyncProducer.cpp
@@ -1,3 +1,19 @@
+/*
+* Licensed to the Apache Software Foundation (ASF) under one or more
+* contributor license agreements.  See the NOTICE file distributed with
+* this work for additional information regarding copyright ownership.
+* The ASF licenses this file to You 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.
+*/
 #include "ons/ONSCallback.h"
 #include "ons/ONSFactory.h"
 #include "rocketmq/Logger.h"
diff --git a/examples/ons/ExampleBroadcastingPushConsumer.cpp 
b/examples/ons/ExampleBroadcastingPushConsumer.cpp
index 523ada2..a355f30 100644
--- a/examples/ons/ExampleBroadcastingPushConsumer.cpp
+++ b/examples/ons/ExampleBroadcastingPushConsumer.cpp
@@ -1,3 +1,19 @@
+/*
+* Licensed to the Apache Software Foundation (ASF) under one or more
+* contributor license agreements.  See the NOTICE file distributed with
+* this work for additional information regarding copyright ownership.
+* The ASF licenses this file to You 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.
+*/
 #include <chrono>
 #include <iostream>
 #include <mutex>
diff --git a/examples/ons/ExampleBroadcastingPushConsumerWithOffsetStore.cpp 
b/examples/ons/ExampleBroadcastingPushConsumerWithOffsetStore.cpp
index 037d16d..59da762 100644
--- a/examples/ons/ExampleBroadcastingPushConsumerWithOffsetStore.cpp
+++ b/examples/ons/ExampleBroadcastingPushConsumerWithOffsetStore.cpp
@@ -1,3 +1,19 @@
+/*
+* Licensed to the Apache Software Foundation (ASF) under one or more
+* contributor license agreements.  See the NOTICE file distributed with
+* this work for additional information regarding copyright ownership.
+* The ASF licenses this file to You 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.
+*/
 #include <chrono>
 #include <iostream>
 #include <mutex>
diff --git a/examples/ons/ExampleOnewayProducer.cpp 
b/examples/ons/ExampleOnewayProducer.cpp
index 74c57bc..622312f 100644
--- a/examples/ons/ExampleOnewayProducer.cpp
+++ b/examples/ons/ExampleOnewayProducer.cpp
@@ -1,3 +1,19 @@
+/*
+* Licensed to the Apache Software Foundation (ASF) under one or more
+* contributor license agreements.  See the NOTICE file distributed with
+* this work for additional information regarding copyright ownership.
+* The ASF licenses this file to You 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.
+*/
 #include "ons/ONSFactory.h"
 #include "rocketmq/Logger.h"
 #include <chrono>
diff --git a/examples/ons/ExampleOrderProducer.cpp 
b/examples/ons/ExampleOrderProducer.cpp
index 8533c48..87c2544 100644
--- a/examples/ons/ExampleOrderProducer.cpp
+++ b/examples/ons/ExampleOrderProducer.cpp
@@ -1,3 +1,19 @@
+/*
+* Licensed to the Apache Software Foundation (ASF) under one or more
+* contributor license agreements.  See the NOTICE file distributed with
+* this work for additional information regarding copyright ownership.
+* The ASF licenses this file to You 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.
+*/
 #include <cstdlib>
 #include <iostream>
 
diff --git a/examples/ons/ExampleOrderPushConsumer.cpp 
b/examples/ons/ExampleOrderPushConsumer.cpp
index 97568cf..a934080 100644
--- a/examples/ons/ExampleOrderPushConsumer.cpp
+++ b/examples/ons/ExampleOrderPushConsumer.cpp
@@ -1,3 +1,19 @@
+/*
+* Licensed to the Apache Software Foundation (ASF) under one or more
+* contributor license agreements.  See the NOTICE file distributed with
+* this work for additional information regarding copyright ownership.
+* The ASF licenses this file to You 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.
+*/
 #include <chrono>
 #include <cstdlib>
 #include <iostream>
diff --git a/examples/ons/ExampleProducer.cpp b/examples/ons/ExampleProducer.cpp
index f80c529..911d01c 100644
--- a/examples/ons/ExampleProducer.cpp
+++ b/examples/ons/ExampleProducer.cpp
@@ -1,3 +1,19 @@
+/*
+* Licensed to the Apache Software Foundation (ASF) under one or more
+* contributor license agreements.  See the NOTICE file distributed with
+* this work for additional information regarding copyright ownership.
+* The ASF licenses this file to You 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.
+*/
 #include "ons/ONSFactory.h"
 #include "rocketmq/Logger.h"
 
diff --git a/examples/ons/ExamplePushConsumer.cpp 
b/examples/ons/ExamplePushConsumer.cpp
index 08c527e..ddacea2 100644
--- a/examples/ons/ExamplePushConsumer.cpp
+++ b/examples/ons/ExamplePushConsumer.cpp
@@ -1,3 +1,19 @@
+/*
+* Licensed to the Apache Software Foundation (ASF) under one or more
+* contributor license agreements.  See the NOTICE file distributed with
+* this work for additional information regarding copyright ownership.
+* The ASF licenses this file to You 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.
+*/
 #include "ons/ONSFactory.h"
 #include "rocketmq/Logger.h"
 
diff --git a/examples/ons/ExamplePushConsumerWithThrottle.cpp 
b/examples/ons/ExamplePushConsumerWithThrottle.cpp
index db7817f..b7c0068 100644
--- a/examples/ons/ExamplePushConsumerWithThrottle.cpp
+++ b/examples/ons/ExamplePushConsumerWithThrottle.cpp
@@ -1,3 +1,19 @@
+/*
+* Licensed to the Apache Software Foundation (ASF) under one or more
+* contributor license agreements.  See the NOTICE file distributed with
+* this work for additional information regarding copyright ownership.
+* The ASF licenses this file to You 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.
+*/
 #include <chrono>
 #include <iostream>
 #include <mutex>
diff --git a/examples/ons/ExampleTimedMessage.cpp 
b/examples/ons/ExampleTimedMessage.cpp
index e20f71d..8aa394a 100644
--- a/examples/ons/ExampleTimedMessage.cpp
+++ b/examples/ons/ExampleTimedMessage.cpp
@@ -1,3 +1,19 @@
+/*
+* Licensed to the Apache Software Foundation (ASF) under one or more
+* contributor license agreements.  See the NOTICE file distributed with
+* this work for additional information regarding copyright ownership.
+* The ASF licenses this file to You 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.
+*/
 #include "ons/ONSFactory.h"
 #include "rocketmq/Logger.h"
 #include <chrono>
diff --git a/examples/ons/ExampleTransactionProducer.cpp 
b/examples/ons/ExampleTransactionProducer.cpp
index 7100703..c787625 100644
--- a/examples/ons/ExampleTransactionProducer.cpp
+++ b/examples/ons/ExampleTransactionProducer.cpp
@@ -1,3 +1,19 @@
+/*
+* Licensed to the Apache Software Foundation (ASF) under one or more
+* contributor license agreements.  See the NOTICE file distributed with
+* this work for additional information regarding copyright ownership.
+* The ASF licenses this file to You 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.
+*/
 #include "ons/TransactionProducer.h"
 
 #include <cstdlib>

Reply via email to