Package software.amazon.awssdk.crt.mqtt5
Class OnConnectionFailureReturn
- java.lang.Object
- 
- software.amazon.awssdk.crt.mqtt5.OnConnectionFailureReturn
 
- 
 public class OnConnectionFailureReturn extends Object The data returned when OnConnectionFailure is invoked in the LifecycleEvents callback. The data contained within can be gotten using thegetfunctions. For example,getConnAckPacketwill return the ConnAckPacket from the server.
- 
- 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description ConnAckPacketgetConnAckPacket()Returns the ConnAckPacket returned from the server on the connection failure, or Null if none was returned.intgetErrorCode()Returns the error code returned from the server on the connection failure.
 
- 
- 
- 
Method Detail- 
getErrorCodepublic int getErrorCode() Returns the error code returned from the server on the connection failure. Pass toCRT.awsErrorString(int)for a human readable error.- Returns:
- The error code returned from the server.
 
 - 
getConnAckPacketpublic ConnAckPacket getConnAckPacket() Returns the ConnAckPacket returned from the server on the connection failure, or Null if none was returned.- Returns:
- The ConnAckPacket returned from the server.
 
 
- 
 
-