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.- Author:
- Middleware Services
-
-
Field Summary
Fields Modifier and Type Field Description protected java.lang.Throwable
failureException
Last thrown exception.-
Fields inherited from class org.ldaptive.AbstractRetryMetadata
failureTime, successTime
-
-
Constructor Summary
Constructors Constructor Description ClosedRetryMetadata(java.time.Instant time, java.lang.Throwable ex)
Creates a new closed retry metadata.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.Throwable
getFailureException()
Returns the exception that caused the closed connection.java.lang.String
toString()
-
Methods inherited from class org.ldaptive.AbstractRetryMetadata
getAttempts, getFailureTime, getSuccessTime, recordFailure, recordSuccess
-
-
-
-
Method Detail
-
getFailureException
public java.lang.Throwable getFailureException()
Returns the exception that caused the closed connection.- Returns:
- failure exception
-
toString
public java.lang.String toString()
- Overrides:
toString
in classAbstractRetryMetadata
-
-