public static final class RegistrationResponse.Failure extends RegistrationResponse
A failure indicates a temporary problem which can be solved by retrying the connection
attempt. That's why the RetryingRegistration
will retry the registration with the
target upon receiving a RegistrationResponse.Failure
response. Consequently, the target should answer with
a RegistrationResponse.Failure
if a temporary failure has occurred.
RegistrationResponse.Failure, RegistrationResponse.Rejection, RegistrationResponse.Success
Constructor and Description |
---|
Failure(Throwable reason)
Creates a new failure message.
|
Modifier and Type | Method and Description |
---|---|
SerializedThrowable |
getReason()
Gets the reason for the failure.
|
String |
toString() |
public Failure(Throwable reason)
reason
- The reason for the failure.public SerializedThrowable getReason()
Copyright © 2014–2024 The Apache Software Foundation. All rights reserved.