Package org.apache.pekko.cluster.pubsub
Class DistributedPubSubSettings
java.lang.Object
org.apache.pekko.cluster.pubsub.DistributedPubSubSettings
- All Implemented Interfaces:
NoSerializationVerificationNeeded
public final class DistributedPubSubSettings
extends Object
implements NoSerializationVerificationNeeded
param: role Start the mediator on members tagged with this role.
All members are used if undefined.
param: routingLogic The routing logic to use for
Send.
param: gossipInterval How often the DistributedPubSubMediator should send out gossip information
param: removedTimeToLive Removed entries are pruned after this duration
param: maxDeltaElements Maximum number of elements to transfer in one message when synchronizing
the registries. Next chunk will be transferred in next round of gossip.
param: sendToDeadLettersWhenNoSubscribers When a message is published to a topic with no subscribers send it to the dead letters.-
Constructor Summary
ConstructorsConstructorDescriptionDistributedPubSubSettings(scala.Option<String> role, RoutingLogic routingLogic, scala.concurrent.duration.FiniteDuration gossipInterval, scala.concurrent.duration.FiniteDuration removedTimeToLive, int maxDeltaElements, boolean sendToDeadLettersWhenNoSubscribers) -
Method Summary
Modifier and TypeMethodDescriptionstatic DistributedPubSubSettingsapply(com.typesafe.config.Config config) Create settings from a configuration with the same layout as the default configurationpekko.cluster.pub-sub.static DistributedPubSubSettingsapply(ActorSystem system) Create settings from the default configurationpekko.cluster.pub-sub.static DistributedPubSubSettingscreate(com.typesafe.config.Config config) Java API: Create settings from a configuration with the same layout as the default configurationpekko.cluster.pub-sub.static DistributedPubSubSettingscreate(ActorSystem system) Java API: Create settings from the default configurationpekko.cluster.pub-sub.scala.concurrent.duration.FiniteDurationintscala.concurrent.duration.FiniteDurationscala.Option<String>role()booleanwithGossipInterval(scala.concurrent.duration.FiniteDuration gossipInterval) withMaxDeltaElements(int maxDeltaElements) withRemovedTimeToLive(scala.concurrent.duration.FiniteDuration removedTimeToLive) withRoutingLogic(RoutingLogic routingLogic) withSendToDeadLettersWhenNoSubscribers(boolean sendToDeadLetterWhenNoSubscribers)
-
Constructor Details
-
DistributedPubSubSettings
public DistributedPubSubSettings(scala.Option<String> role, RoutingLogic routingLogic, scala.concurrent.duration.FiniteDuration gossipInterval, scala.concurrent.duration.FiniteDuration removedTimeToLive, int maxDeltaElements, boolean sendToDeadLettersWhenNoSubscribers)
-
-
Method Details
-
apply
Create settings from the default configurationpekko.cluster.pub-sub. -
apply
Create settings from a configuration with the same layout as the default configurationpekko.cluster.pub-sub. -
create
Java API: Create settings from the default configurationpekko.cluster.pub-sub. -
create
Java API: Create settings from a configuration with the same layout as the default configurationpekko.cluster.pub-sub. -
role
-
routingLogic
-
gossipInterval
public scala.concurrent.duration.FiniteDuration gossipInterval() -
removedTimeToLive
public scala.concurrent.duration.FiniteDuration removedTimeToLive() -
maxDeltaElements
public int maxDeltaElements() -
sendToDeadLettersWhenNoSubscribers
public boolean sendToDeadLettersWhenNoSubscribers() -
withRole
-
withRole
-
withRoutingLogic
-
withGossipInterval
public DistributedPubSubSettings withGossipInterval(scala.concurrent.duration.FiniteDuration gossipInterval) -
withRemovedTimeToLive
public DistributedPubSubSettings withRemovedTimeToLive(scala.concurrent.duration.FiniteDuration removedTimeToLive) -
withMaxDeltaElements
-
withSendToDeadLettersWhenNoSubscribers
public DistributedPubSubSettings withSendToDeadLettersWhenNoSubscribers(boolean sendToDeadLetterWhenNoSubscribers)
-