Enum Class DittoConnectionType
- All Implemented Interfaces:
Serializable,Comparable<DittoConnectionType>,Constable
Represents the type of transport used for a DittoConnection between two DittoPeers.
This enum identifies the underlying network technology enabling peer-to-peer or client-server communication in the Ditto mesh network.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionWi-Fi LAN transport.Bluetooth Low Energy transport.Peer-to-peer Wi-Fi transport.WebSocket connection to a remote server. -
Method Summary
Modifier and TypeMethodDescriptionstatic DittoConnectionTypeReturns the enum constant of this class with the specified name.static DittoConnectionType[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
BLUETOOTH
Bluetooth Low Energy transport.
Local peer-to-peer connections using Bluetooth LE for short-range communication.
-
ACCESS_POINT
Wi-Fi LAN transport.
Connections over Wi-Fi infrastructure (access point/router) for local network communication.
-
P2PWIFI
Peer-to-peer Wi-Fi transport.
Direct peer-to-peer connections using either Wi-Fi Aware (NAN) or Wi-Fi Direct technologies, allowing devices to communicate without requiring a Wi-Fi access point.
-
WEBSOCKET
WebSocket connection to a remote server.
Client-server connections using WebSocket protocol, typically to connect to a Ditto Big Peer or cloud-based sync server over the internet.
-
-
Method Details
-
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
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 nameNullPointerException- if the argument is null
-