Enum Class DittoTransportCondition

java.lang.Object
java.lang.Enum<DittoTransportCondition>
com.ditto.java.DittoTransportCondition
All Implemented Interfaces:
Serializable, Comparable<DittoTransportCondition>, Constable

public enum DittoTransportCondition extends Enum<DittoTransportCondition>

Represents the operational condition of a Ditto transport.

This enum describes the current state of a transport mechanism, indicating whether it is functioning normally or experiencing issues that prevent connectivity.

See Also:
  • Enum Constant Details

    • UNKNOWN

      public static final DittoTransportCondition UNKNOWN
      The transport condition is unknown or could not be determined.
    • OK

      public static final DittoTransportCondition OK
      The transport is operating normally with no known issues.
    • GENERIC_FAILURE

      public static final DittoTransportCondition GENERIC_FAILURE

      The transport has encountered a generic failure.

      This indicates an unspecified error condition that doesn't fall into any of the more specific failure categories.

    • APP_IN_BACKGROUND

      public static final DittoTransportCondition APP_IN_BACKGROUND

      The application is in the background, affecting transport availability.

      Some transports may have reduced functionality or be unavailable when the application is not in the foreground.

    • MDNS_FAILURE

      public static final DittoTransportCondition MDNS_FAILURE

      The mDNS (Multicast DNS) service has failed.

      This affects the ability to discover peers on the local network.

    • TCP_LISTEN_FAILURE

      public static final DittoTransportCondition TCP_LISTEN_FAILURE

      Failed to establish a TCP listening socket.

      This prevents the device from accepting incoming TCP connections.

    • NO_BLE_CENTRAL_PERMISSION

      public static final DittoTransportCondition NO_BLE_CENTRAL_PERMISSION

      The application lacks permission to use Bluetooth LE in central mode.

      Central mode is required for scanning and connecting to other devices.

    • NO_BLE_PERIPHERAL_PERMISSION

      public static final DittoTransportCondition NO_BLE_PERIPHERAL_PERMISSION

      The application lacks permission to use Bluetooth LE in peripheral mode.

      Peripheral mode is required for advertising and accepting connections from other devices.

    • CANNOT_ESTABLISH_CONNECTION

      public static final DittoTransportCondition CANNOT_ESTABLISH_CONNECTION

      Unable to establish a connection with the remote peer.

      This indicates a connection attempt failed, possibly due to network issues or the remote peer being unavailable.

    • BLE_DISABLED

      public static final DittoTransportCondition BLE_DISABLED

      Bluetooth is disabled on the device.

      Bluetooth must be enabled for BLE transports to function.

    • NO_BLE_HARDWARE

      public static final DittoTransportCondition NO_BLE_HARDWARE

      The device does not have Bluetooth hardware.

      This device cannot use BLE transports.

    • WIFI_DISABLED

      public static final DittoTransportCondition WIFI_DISABLED

      Wi-Fi is disabled on the device.

      Wi-Fi must be enabled for Wi-Fi Aware and other Wi-Fi-based transports to function.

    • TEMPORARILY_UNAVAILABLE

      public static final DittoTransportCondition TEMPORARILY_UNAVAILABLE

      The transport is temporarily unavailable.

      This is a transient condition that may resolve on its own. The transport may become available again without intervention.

  • Method Details

    • values

      public static DittoTransportCondition[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      Returns:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static DittoTransportCondition valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum class has no constant with the specified name
      NullPointerException - if the argument is null