All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.nofdev.topic.TopicConsumerConfig.groovy Maven / Gradle / Ivy

There is a newer version: 1.7.6
Show newest version
package org.nofdev.topic

import groovy.transform.CompileStatic

/**
 * Created by Liutengfei on 2016/5/11 0011.
 */
@CompileStatic
class TopicConsumerConfig extends Properties {

    void setGroupId(String groupId) {
        put("group.id", groupId)
    }
    String getGroupId() {
        return get("group.id")
    }
    void setAccessId(String accessId){
        put("accessId", accessId)
    }
    String getAccessId() {
        return get("accessId")
    }
    void setAccessKey(String accessKey){
        put("accessKey", accessKey)
    }
    String getAccessKey() {
        return get("accessKey")
    }
    void setEndpoint(String accountEndpoint){
        put("endpoint", accountEndpoint)
    }

    String getEndpoint(){
        return get("endpoint")
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy