Package org.ldaptive
Class ClosedRetryMetadata
- java.lang.Object
-
- org.ldaptive.AbstractRetryMetadata
-
- org.ldaptive.ClosedRetryMetadata
-
- All Implemented Interfaces:
RetryMetadata
public class ClosedRetryMetadata extends AbstractRetryMetadata
Retry metadata used when a connection is unexpectedly closed.
-
-
Field Summary
Fields Modifier and Type Field Description protected Throwable
failureException
Last thrown exception.-
Fields inherited from class org.ldaptive.AbstractRetryMetadata
failureTime, successTime
-
-
Constructor Summary
Constructors Constructor Description ClosedRetryMetadata(Instant time, Throwable ex)
Creates a new closed retry metadata.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Throwable
getFailureException()
Returns the exception that caused the closed connection.String
toString()
-
Methods inherited from class org.ldaptive.AbstractRetryMetadata
getAttempts, getFailureTime, getSuccessTime, recordFailure, recordSuccess
-
-
-
-
Field Detail
-
failureException
protected final Throwable failureException
Last thrown exception.
-
-
Method Detail
-
getFailureException
public Throwable getFailureException()
Returns the exception that caused the closed connection.- Returns:
- failure exception
-
toString
public String toString()
- Overrides:
toString
in classAbstractRetryMetadata
-
-