org.nofdev.topic.TopicConsumerConfig.groovy Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of service-topic-consumer Show documentation
Show all versions of service-topic-consumer Show documentation
The basic componet of Nofdev Topic framework
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")
}
}