Class DittoConnect

java.lang.Object
com.ditto.java.transports.DittoConnect

public final class DittoConnect extends Object
Specific servers that Ditto should attempt to connect to. TCP servers are specified as "host:port". Websocket URLs take the form "wss://hydra.ditto.live". Please refer to the documentation on Ditto's website for configuring cloud or client/server scenarios.
  • Method Details

    • getTcpServers

      public @NonNull Set<? extends String> getTcpServers()
      Returns the set of TCP server addresses to connect to.
      Returns:
      a Set of TCP server addresses in "host:port" format.
    • getWebsocketUrls

      public @NonNull Set<? extends String> getWebsocketUrls()
      Returns the set of WebSocket URLs to connect to.
      Returns:
      a Set of WebSocket URLs (e.g., "wss://example.ditto.live").
    • getRetryIntervalMs

      public long getRetryIntervalMs()
      Returns the retry interval in milliseconds for connection attempts.
      Returns:
      the retry interval in milliseconds.
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • equals

      public boolean equals(Object obj)
      Overrides:
      equals in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object