Package org.ldaptive
Interface RetryMetadata
-
- All Known Implementing Classes:
AbstractRetryMetadata,ClosedRetryMetadata,InitialRetryMetadata,LdapURLRetryMetadata
public interface RetryMetadataContains properties related to retries.- Author:
- Middleware Services
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description intgetAttempts()Number of attempts for this retry.java.time.InstantgetFailureTime()Returns the failure time.java.time.InstantgetSuccessTime()Returns the success time.voidrecordFailure(java.time.Instant time)Records a connection failure at the given instant.voidrecordSuccess(java.time.Instant time)Records a connection success at the given instant.
-
-
-
Method Detail
-
getSuccessTime
java.time.Instant getSuccessTime()
Returns the success time.- Returns:
- time that the success occurred
-
getFailureTime
java.time.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(java.time.Instant time)
Records a connection success at the given instant.- Parameters:
time- Point in time where connection was opened.
-
recordFailure
void recordFailure(java.time.Instant time)
Records a connection failure at the given instant.- Parameters:
time- Point in time where connection failed.
-
-