Package org.ldaptive
Interface RetryMetadata
-
- All Known Implementing Classes:
AbstractRetryMetadata
,ClosedRetryMetadata
,InitialRetryMetadata
,LdapURLRetryMetadata
public interface RetryMetadata
Contains properties related to retries.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description int
getAttempts()
Number of attempts for this retry.Instant
getFailureTime()
Returns the failure time.Instant
getSuccessTime()
Returns the success time.void
recordFailure(Instant time)
Records a connection failure at the given instant.void
recordSuccess(Instant time)
Records a connection success at the given instant.
-
-
-
Method Detail
-
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
-
getAttempts
int getAttempts()
Number of attempts for this retry.- Returns:
- retry attempts
-
recordSuccess
void recordSuccess(Instant time)
Records a connection success at the given instant.- Parameters:
time
- Point in time when connection was opened.
-
recordFailure
void recordFailure(Instant time)
Records a connection failure at the given instant.- Parameters:
time
- Point in time when connection failed.
-
-