Package io.deephaven.kv.etcd.lease
Class ActiveLeaseExistsException
- All Implemented Interfaces:
Serializable
The exception to raise when a new service registration is invoked on an existing active lease for an endpoint
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionActiveLeaseExistsException(boolean deadlineExpired) Default ConstructorActiveLeaseExistsException(@NotNull String message, boolean deadlineExpired) Constructor that supports taking a detailed message describing the error.ActiveLeaseExistsException(@NotNull String reason, @Nullable Throwable cause, boolean deadlineExpired) Constructor that builds aRetryableRenewingLeaseManagerExceptionusing the passed in message and optional cause.ActiveLeaseExistsException(@NotNull String message, @Nullable Throwable cause, boolean enableSuppression, boolean writableStackTrace, boolean deadlineExpired) Constructor that builds aRetryableRenewingLeaseManagerExceptionusing the passed in message, optional cause, suppression indicator and writable stacktrace flag.ActiveLeaseExistsException(@NotNull Throwable cause, boolean deadlineExpired) Constructor that builds aRetryableRenewingLeaseManagerExceptionusing the specified cause. -
Method Summary
Modifier and TypeMethodDescriptionbooleanA true value indicates that the lease time to live deadline has expiredMethods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
ActiveLeaseExistsException
public ActiveLeaseExistsException(boolean deadlineExpired) Default Constructor- Parameters:
deadlineExpired- A true value indicates the exception is raised after the time to live deadline has passed on a retry registration attempt
-
ActiveLeaseExistsException
Constructor that supports taking a detailed message describing the error.- Parameters:
message- A detailed message describing the error.deadlineExpired- A true value indicates the exception is raised after the time to live deadline has passed on a retry registration attempt
-
ActiveLeaseExistsException
Constructor that builds aRetryableRenewingLeaseManagerExceptionusing the specified cause.- Parameters:
cause- The passed in cause.deadlineExpired- A true value indicates the exception is raised after the time to live deadline has passed on a retry registration attempt
-
ActiveLeaseExistsException
public ActiveLeaseExistsException(@NotNull @NotNull String reason, @Nullable @Nullable Throwable cause, boolean deadlineExpired) Constructor that builds aRetryableRenewingLeaseManagerExceptionusing the passed in message and optional cause.- Parameters:
reason- The passed in message detailing the errorcause- Optional cause, null would indicate the error is unknowndeadlineExpired- A true value indicates the exception is raised after the time to live deadline has passed on a retry registration attempt
-
ActiveLeaseExistsException
public ActiveLeaseExistsException(@NotNull @NotNull String message, @Nullable @Nullable Throwable cause, boolean enableSuppression, boolean writableStackTrace, boolean deadlineExpired) Constructor that builds aRetryableRenewingLeaseManagerExceptionusing the passed in message, optional cause, suppression indicator and writable stacktrace flag.- Parameters:
message- The passed in message detailing the errorcause- Optional cause, null would indicate the error is unknownenableSuppression- Boolean that indicates suppression is enabled or disabledwritableStackTrace- Boolean that indicates if stacktrace is writabledeadlineExpired- A true value indicates the exception is raised after the time to live deadline has passed on a retry registration attempt
-
-
Method Details
-
isDeadlineExpired
public boolean isDeadlineExpired()A true value indicates that the lease time to live deadline has expired- Returns:
- The property set to indicate if lease ttl deadline has expired
-