Package org.ldaptive
Class ClosedRetryMetadata
java.lang.Object
org.ldaptive.AbstractRetryMetadata
org.ldaptive.ClosedRetryMetadata
- All Implemented Interfaces:
RetryMetadata
Retry metadata used when a connection is unexpectedly closed.
-
Field Summary
FieldsFields inherited from class org.ldaptive.AbstractRetryMetadata
failureTime, successTime -
Constructor Summary
ConstructorsConstructorDescriptionClosedRetryMetadata(Clock clock, Instant time, Throwable ex) Creates a new closed retry metadata.ClosedRetryMetadata(Instant time, Throwable ex) Creates a new closed retry metadata. -
Method Summary
Modifier and TypeMethodDescriptionReturns the exception that caused the closed connection.toString()Methods inherited from class org.ldaptive.AbstractRetryMetadata
getAttempts, getCreateTime, getFailureTime, getSuccessTime, recordFailure, recordSuccess
-
Field Details
-
failureException
Last thrown exception.
-
-
Constructor Details
-
ClosedRetryMetadata
Creates a new closed retry metadata.- Parameters:
clock- to set the create timetime- of last successful connectionex- exception that caused the connection to close
-
ClosedRetryMetadata
Creates a new closed retry metadata.- Parameters:
time- of last successful connectionex- exception that caused the connection to close
-
-
Method Details
-
getFailureException
Returns the exception that caused the closed connection.- Returns:
- failure exception
-
toString
- Overrides:
toStringin classAbstractRetryMetadata
-