| Constructor and Description |
|---|
ProducerImpl(ProducerConfig producerConfig) |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
void |
closeNow() |
void |
config(ProducerConfig producerConfig) |
static Producer |
defaultProducer(String endpoint,
String region,
String accessKey,
String accessSecret,
String token) |
void |
resetAccessKeyToken(String accessKey,
String secretKey,
String securityToken) |
void |
sendLog(String hashKey,
String topicId,
String source,
String filename,
PutLogRequest.Log log,
CallBack callBack) |
void |
sendLogGroup(String hashKey,
String topicId,
String source,
String filename,
PutLogRequest.LogGroup logGroup,
CallBack callBack) |
void |
start() |
public ProducerImpl(ProducerConfig producerConfig) throws LogException
LogExceptionpublic static Producer defaultProducer(String endpoint, String region, String accessKey, String accessSecret, String token) throws LogException
LogExceptionpublic void sendLog(String hashKey, String topicId, String source, String filename, PutLogRequest.Log log, CallBack callBack) throws InterruptedException, LogException
sendLog in interface ProducerInterruptedExceptionLogExceptionpublic void sendLogGroup(String hashKey, String topicId, String source, String filename, PutLogRequest.LogGroup logGroup, CallBack callBack) throws InterruptedException, LogException
sendLogGroup in interface ProducerInterruptedExceptionLogExceptionpublic void resetAccessKeyToken(String accessKey, String secretKey, String securityToken) throws LogException
resetAccessKeyToken in interface ProducerLogExceptionpublic void start()
throws LogException
start in interface ProducerLogExceptionpublic void close()
throws InterruptedException,
LogException
close in interface ProducerInterruptedExceptionLogExceptionpublic void closeNow()
throws InterruptedException,
LogException
closeNow in interface ProducerInterruptedExceptionLogExceptionpublic void config(ProducerConfig producerConfig) throws LogException
config in interface ProducerLogExceptionCopyright © 2023. All rights reserved.