Class DittoConfig.Connect.SmallPeersOnly
java.lang.Object
com.ditto.java.DittoConfig.Connect
com.ditto.java.DittoConfig.Connect.SmallPeersOnly
- Enclosing class:
DittoConfig.Connect
Configuration for peer-to-peer connections without a server.
This mode allows Ditto to operate in a mesh network where peers connect directly
to each other without requiring a central server.
-
Nested Class Summary
Nested classes/interfaces inherited from class com.ditto.java.DittoConfig.Connect
DittoConfig.Connect.Server, DittoConfig.Connect.SmallPeersOnly -
Constructor Summary
ConstructorsConstructorDescriptionCreates a SmallPeersOnly connection configuration with an auto-generated private key.SmallPeersOnly(@Nullable String privateKey) Creates a SmallPeersOnly connection configuration with the specified private key. -
Method Summary
-
Constructor Details
-
SmallPeersOnly
Creates a SmallPeersOnly connection configuration with the specified private key.- Parameters:
privateKey- the private key for this peer, or null to auto-generate one.
-
SmallPeersOnly
public SmallPeersOnly()Creates a SmallPeersOnly connection configuration with an auto-generated private key.
-
-
Method Details
-
getPrivateKey
Returns the private key for this peer.- Returns:
- the private key string, or null if not set.
-
toString
-
hashCode
-
equals
-