Class NWTCPConnectionState


  • public final class NWTCPConnectionState
    extends java.lang.Object
    [@typedef] NWTCPConnectionState Defined connection states. New types may be defined in the future.
    • Field Summary

      Fields 
      Modifier and Type Field Description
      static long Cancelled
      [@constant] NWTCPConnectionStateCancelled The connection is cancelled.
      static long Connected
      [@constant] NWTCPConnectionStateConnected The connection is established.
      static long Connecting
      [@constant] NWTCPConnectionStateConnecting The connection is attempting
      static long Disconnected
      [@constant] NWTCPConnectionStateDisconnected The connection is disconnected.
      static long Invalid
      [@constant] NWTCPConnectionStateInvalid The connection is in an invalid or uninitialized state
      static long Waiting
      [@constant] NWTCPConnectionStateWaiting The connection has attempted but failed.
    • Method Summary

      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • Invalid

        public static final long Invalid
        [@constant] NWTCPConnectionStateInvalid The connection is in an invalid or uninitialized state
        See Also:
        Constant Field Values
      • Connecting

        public static final long Connecting
        [@constant] NWTCPConnectionStateConnecting The connection is attempting
        See Also:
        Constant Field Values
      • Waiting

        public static final long Waiting
        [@constant] NWTCPConnectionStateWaiting The connection has attempted but failed. It is now waiting for better condition(s) before trying again.
        See Also:
        Constant Field Values
      • Connected

        public static final long Connected
        [@constant] NWTCPConnectionStateConnected The connection is established. It is now possible to transfer data. If TLS is in use, the TLS handshake would have finished when the connection is in this state.
        See Also:
        Constant Field Values
      • Disconnected

        public static final long Disconnected
        [@constant] NWTCPConnectionStateDisconnected The connection is disconnected. It is no longer possible to transfer data. The application should call cancellation method to clean up resources when the connection is in this state.
        See Also:
        Constant Field Values
      • Cancelled

        public static final long Cancelled
        [@constant] NWTCPConnectionStateCancelled The connection is cancelled. This is triggered by the cancellation method.
        See Also:
        Constant Field Values