Class ActiveLeaseExistsException

All Implemented Interfaces:
Serializable

public class ActiveLeaseExistsException extends RetryableRenewingLeaseManagerException
The exception to raise when a new service registration is invoked on an existing active lease for an endpoint
See Also:
  • 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

      public ActiveLeaseExistsException(@NotNull @NotNull String message, boolean deadlineExpired)
      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

      public ActiveLeaseExistsException(@NotNull @NotNull Throwable cause, boolean deadlineExpired)
      Constructor that builds a RetryableRenewingLeaseManagerException using 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 a RetryableRenewingLeaseManagerException using the passed in message and optional cause.
      Parameters:
      reason - The passed in message detailing the error
      cause - Optional cause, null would indicate the error is unknown
      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 message, @Nullable @Nullable Throwable cause, boolean enableSuppression, boolean writableStackTrace, boolean deadlineExpired)
      Constructor that builds a RetryableRenewingLeaseManagerException using the passed in message, optional cause, suppression indicator and writable stacktrace flag.
      Parameters:
      message - The passed in message detailing the error
      cause - Optional cause, null would indicate the error is unknown
      enableSuppression - Boolean that indicates suppression is enabled or disabled
      writableStackTrace - Boolean that indicates if stacktrace is writable
      deadlineExpired - 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