Interface ConnectionRequestBuilder.Result
-
- Enclosing interface:
- ConnectionRequestBuilder
public static interface ConnectionRequestBuilder.ResultRepresents the result of a connection request.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description @Nullable ComponentfailureReason()Returns an (optional) textual reason for the failure to connect to the server.RegisteredServerfinalTarget()Returns the server we actually tried to connect to.default booleanisSuccessful()Determines whether or not the connection request was successful.ConnectionRequestBuilder.Statusstatus()Returns the status associated with this result.
-
-
-
Method Detail
-
isSuccessful
default boolean isSuccessful()
Determines whether or not the connection request was successful.- Returns:
- whether or not the request succeeded
-
status
ConnectionRequestBuilder.Status status()
Returns the status associated with this result.- Returns:
- the status for this result
-
failureReason
@Nullable Component failureReason()
Returns an (optional) textual reason for the failure to connect to the server.- Returns:
- the reason why the user could not connect to the server
-
finalTarget
RegisteredServer finalTarget()
Returns the server we actually tried to connect to.- Returns:
- the server we actually tried to connect to
-
-