Class OnDisconnectionReturn


  • public class OnDisconnectionReturn
    extends java.lang.Object
    The data returned when OnDisconnect is invoked in the LifecycleEvents callback. The data contained within can be gotten using the get functions. For example, getDisconnectPacket will return the DisconnectPacket from the server.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      DisconnectPacket getDisconnectPacket()
      Returns the ConnAckPacket returned from the server on the disconnection, or Null if none was returned.
      int getErrorCode()
      Returns the error code returned from the server on the disconnection.
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • getErrorCode

        public int getErrorCode()
        Returns the error code returned from the server on the disconnection. Pass to CRT.awsErrorString(int) for a human readable error.
        Returns:
        The error code returned from the server.
      • getDisconnectPacket

        public DisconnectPacket getDisconnectPacket()
        Returns the ConnAckPacket returned from the server on the disconnection, or Null if none was returned.
        Returns:
        The ConnAckPacket returned from the server.