Interface DistributedDataConfig

All Known Implementing Classes:
DefaultDistributedDataConfig

@Immutable public interface DistributedDataConfig
Provides configuration settings for DistributedData.
  • Method Details

    • getReadTimeout

      Duration getReadTimeout()
      Returns the timeout of GET-messages of the replicator.
      Returns:
      the timeout of reads.
    • getWriteTimeout

      Duration getWriteTimeout()
      Returns the timeout of UPDATE-messages of the replicator.
      Returns:
      the timeout of writes.
    • getSubscriptionWriteConsistency

      org.apache.pekko.cluster.ddata.Replicator.WriteConsistency getSubscriptionWriteConsistency()
      Returns the write consistency for topic subscription.
      Returns:
      the write consistency.
    • getSubscriptionDelay

      Duration getSubscriptionDelay()
      Returns the delay for subscriptions.
      Returns:
      the subscription delay.
    • getPekkoReplicatorConfig

      PekkoReplicatorConfig getPekkoReplicatorConfig()
      Returns the config to use for creating the Replicator.
      Returns:
      the Pekko replicator config to use.
    • getNumberOfShards

      int getNumberOfShards()
      The number of shards Ditto's ddata extension applies for Map keys.
      Returns:
      the number of shards to apply.
    • getSubscriberPoolSize

      int getSubscriberPoolSize()
      The number of subscribers in each subscriber pool.
      Returns:
      the number of subscribers.