Add message consumer dynamic functions.
[ccsdk/cds.git] / ms / blueprintsprocessor / modules / commons / message-lib / src / main / kotlin / org / onap / ccsdk / cds / blueprintsprocessor / message / BluePrintMessageLibData.kt
1 /*
2  *  Copyright © 2019 IBM.
3  *  Modifications Copyright © 2018-2019 AT&T Intellectual Property.
4  *
5  *  Licensed under the Apache License, Version 2.0 (the "License");
6  *  you may not use this file except in compliance with the License.
7  *  You may obtain a copy of the License at
8  *
9  *      http://www.apache.org/licenses/LICENSE-2.0
10  *
11  *  Unless required by applicable law or agreed to in writing, software
12  *  distributed under the License is distributed on an "AS IS" BASIS,
13  *  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14  *  See the License for the specific language governing permissions and
15  *  limitations under the License.
16  */
17
18 package org.onap.ccsdk.cds.blueprintsprocessor.message
19
20 /** Producer Properties **/
21 open class MessageProducerProperties
22
23
24 open class KafkaBasicAuthMessageProducerProperties : MessageProducerProperties() {
25     lateinit var bootstrapServers: String
26     var topic: String? = null
27     var clientId: String? = null
28 }
29
30 /** Consumer Properties **/
31
32 open class MessageConsumerProperties
33
34 open class KafkaMessageConsumerProperties : MessageConsumerProperties() {
35     lateinit var bootstrapServers: String
36     lateinit var groupId: String
37     lateinit var clientId: String
38     var topic: String? = null
39     var autoCommit: Boolean = true
40     var autoOffsetReset: String = "latest"
41     var pollMillSec: Long = 1000
42     var pollRecords: Int = -1
43 }
44
45 open class KafkaBasicAuthMessageConsumerProperties : KafkaMessageConsumerProperties()