public final class DistributedPubSubSettings extends java.lang.Object implements NoSerializationVerificationNeeded
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.Constructor and Description |
---|
DistributedPubSubSettings(scala.Option<java.lang.String> role,
RoutingLogic routingLogic,
scala.concurrent.duration.FiniteDuration gossipInterval,
scala.concurrent.duration.FiniteDuration removedTimeToLive,
int maxDeltaElements) |
Modifier and Type | Method and Description |
---|---|
static DistributedPubSubSettings |
apply(ActorSystem system)
Create settings from the default configuration
akka.cluster.pub-sub . |
static DistributedPubSubSettings |
apply(com.typesafe.config.Config config)
Create settings from a configuration with the same layout as
the default configuration
akka.cluster.pub-sub . |
static DistributedPubSubSettings |
create(ActorSystem system)
Java API: Create settings from the default configuration
akka.cluster.pub-sub . |
static DistributedPubSubSettings |
create(com.typesafe.config.Config config)
Java API: Create settings from a configuration with the same layout as
the default configuration
akka.cluster.pub-sub . |
scala.concurrent.duration.FiniteDuration |
gossipInterval() |
int |
maxDeltaElements() |
scala.concurrent.duration.FiniteDuration |
removedTimeToLive() |
scala.Option<java.lang.String> |
role() |
static scala.Option<java.lang.String> |
roleOption(java.lang.String role)
INTERNAL API
|
RoutingLogic |
routingLogic() |
DistributedPubSubSettings |
withGossipInterval(scala.concurrent.duration.FiniteDuration gossipInterval) |
DistributedPubSubSettings |
withMaxDeltaElements(int maxDeltaElements) |
DistributedPubSubSettings |
withRemovedTimeToLive(scala.concurrent.duration.FiniteDuration removedTimeToLive) |
DistributedPubSubSettings |
withRole(scala.Option<java.lang.String> role) |
DistributedPubSubSettings |
withRole(java.lang.String role) |
DistributedPubSubSettings |
withRoutingLogic(RoutingLogic routingLogic) |
public DistributedPubSubSettings(scala.Option<java.lang.String> role, RoutingLogic routingLogic, scala.concurrent.duration.FiniteDuration gossipInterval, scala.concurrent.duration.FiniteDuration removedTimeToLive, int maxDeltaElements)
public static DistributedPubSubSettings apply(ActorSystem system)
akka.cluster.pub-sub
.system
- (undocumented)public static DistributedPubSubSettings apply(com.typesafe.config.Config config)
akka.cluster.pub-sub
.config
- (undocumented)public static DistributedPubSubSettings create(ActorSystem system)
akka.cluster.pub-sub
.system
- (undocumented)public static DistributedPubSubSettings create(com.typesafe.config.Config config)
akka.cluster.pub-sub
.config
- (undocumented)public static scala.Option<java.lang.String> roleOption(java.lang.String role)
role
- (undocumented)public scala.Option<java.lang.String> role()
public RoutingLogic routingLogic()
public scala.concurrent.duration.FiniteDuration gossipInterval()
public scala.concurrent.duration.FiniteDuration removedTimeToLive()
public int maxDeltaElements()
public DistributedPubSubSettings withRole(java.lang.String role)
public DistributedPubSubSettings withRole(scala.Option<java.lang.String> role)
public DistributedPubSubSettings withRoutingLogic(RoutingLogic routingLogic)
public DistributedPubSubSettings withGossipInterval(scala.concurrent.duration.FiniteDuration gossipInterval)
public DistributedPubSubSettings withRemovedTimeToLive(scala.concurrent.duration.FiniteDuration removedTimeToLive)
public DistributedPubSubSettings withMaxDeltaElements(int maxDeltaElements)