Package org.ldaptive
Interface RetryMetadata
- All Known Implementing Classes:
AbstractRetryMetadata,ClosedRetryMetadata,InitialRetryMetadata,LdapURLRetryMetadata
public interface RetryMetadata
Contains properties related to retries.
-
Method Summary
Modifier and TypeMethodDescriptionintNumber of attempts for this retry.Returns the create time.Returns the failure time.Returns the success time.voidrecordFailure(Instant time) Records a connection failure at the given instant.voidrecordSuccess(Instant time) Records a connection success at the given instant.
-
Method Details
-
getSuccessTime
Instant getSuccessTime()Returns the success time.- Returns:
- time that the success occurred
-
getFailureTime
Instant getFailureTime()Returns the failure time.- Returns:
- time that the failure occurred
-
getCreateTime
Instant getCreateTime()Returns the create time.- Returns:
- time that the metadata was created
-
getAttempts
int getAttempts()Number of attempts for this retry.- Returns:
- retry attempts
-
recordSuccess
Records a connection success at the given instant.- Parameters:
time- Point in time when connection was opened.
-
recordFailure
Records a connection failure at the given instant.- Parameters:
time- Point in time when connection failed.
-