20 lines
794 B
Java
20 lines
794 B
Java
|
|
package cn.ac.iie.common;
|
||
|
|
|
||
|
|
|
||
|
|
import cn.ac.iie.utils.system.FlowWriteConfigurations;
|
||
|
|
|
||
|
|
/**
|
||
|
|
* @author Administrator
|
||
|
|
*/
|
||
|
|
public class KafkaProConfig {
|
||
|
|
|
||
|
|
|
||
|
|
public static final String RETRIES = FlowWriteConfigurations.getStringProperty(1, "retries");
|
||
|
|
public static final String LINGER_MS = FlowWriteConfigurations.getStringProperty(1, "linger.ms");
|
||
|
|
public static final Integer REQUEST_TIMEOUT_MS = FlowWriteConfigurations.getIntProperty(1, "request.timeout.ms");
|
||
|
|
public static final Integer BATCH_SIZE = FlowWriteConfigurations.getIntProperty(1, "batch.size");
|
||
|
|
public static final Integer BUFFER_MEMORY = FlowWriteConfigurations.getIntProperty(1, "buffer.memory");
|
||
|
|
public static final Integer MAX_REQUEST_SIZE = FlowWriteConfigurations.getIntProperty(1, "max.request.size");
|
||
|
|
|
||
|
|
|
||
|
|
}
|