public class Result extends Object
LogProducer.send(java.lang.String, java.lang.String, com.aliyun.openservices.log.common.LogItem) operation. A list of Attempts is provided with
details about each attempt made.Attempt| Constructor and Description |
|---|
Result(boolean successful,
List<Attempt> reservedAttempts,
int attemptCount) |
| Modifier and Type | Method and Description |
|---|---|
int |
getAttemptCount() |
String |
getErrorCode() |
String |
getErrorMessage() |
List<Attempt> |
getReservedAttempts() |
boolean |
isSuccessful() |
String |
toString() |
public boolean isSuccessful()
public List<Attempt> getReservedAttempts()
Attempts, in the order they were made. If the attempts exceed ProducerConfig.getMaxReservedAttempts(), the oldest one will be removed.public int getAttemptCount()
public String getErrorCode()
public String getErrorMessage()
Copyright © 2023. All rights reserved.