Class DittoGlobalConfig.Builder

java.lang.Object
com.ditto.java.transports.DittoGlobalConfig.Builder
Enclosing class:
DittoGlobalConfig

public static final class DittoGlobalConfig.Builder extends Object
Builder for constructing a DittoGlobalConfig.
  • Method Details

    • syncGroup

      public @NonNull DittoUInt syncGroup()
      Returns the current sync group.
      Returns:
      the sync group identifier.
    • syncGroup

      public @NonNull DittoGlobalConfig.Builder syncGroup(@NonNull DittoUInt syncGroup)
      Sets the sync group for this device.
      Parameters:
      syncGroup - the sync group identifier (0 to 2^32-1).
      Returns:
      this Builder for method chaining.
    • routingHint

      public @NonNull DittoUInt routingHint()
      Returns the current routing hint.
      Returns:
      the routing hint value.
    • routingHint

      public @NonNull DittoGlobalConfig.Builder routingHint(@NonNull DittoUInt routingHint)
      Sets the routing hint for this device.
      Parameters:
      routingHint - the routing hint value for performance optimization.
      Returns:
      this Builder for method chaining.