C# Class Akka.Cluster.Tools.PublishSubscribe.DistributedPubSubSettings

Exibir arquivo Open project: rogeralsing/akka.net Class Usage Examples

Public Properties

Property Type Description
GossipInterval System.TimeSpan
MaxDeltaElements int
RemovedTimeToLive System.TimeSpan
Role string
RoutingLogic Akka.Routing.RoutingLogic

Public Methods

Method Description
Create ( ActorSystem system ) : DistributedPubSubSettings

Creates cluster publish/subscribe settings from the default configuration `akka.cluster.pub-sub`.

Create ( Config config ) : DistributedPubSubSettings

Creates cluster publish subscribe settings from provided configuration with the same layout as `akka.cluster.pub-sub`.

DistributedPubSubSettings ( string role, RoutingLogic routingLogic, System.TimeSpan gossipInterval, System.TimeSpan removedTimeToLive, int maxDeltaElements ) : System

Creates a new instance of the DistributedPubSubSettings.

WithGossipInterval ( System.TimeSpan gossipInterval ) : DistributedPubSubSettings
WithMaxDeltaElements ( int maxDeltaElements ) : DistributedPubSubSettings
WithRemovedTimeToLive ( System.TimeSpan removedTtl ) : DistributedPubSubSettings
WithRole ( string role ) : DistributedPubSubSettings
WithRoutingLogic ( RoutingLogic routingLogic ) : DistributedPubSubSettings

Method Details

Create() public static method

Creates cluster publish/subscribe settings from the default configuration `akka.cluster.pub-sub`.
public static Create ( ActorSystem system ) : DistributedPubSubSettings
system ActorSystem
return DistributedPubSubSettings

Create() public static method

Creates cluster publish subscribe settings from provided configuration with the same layout as `akka.cluster.pub-sub`.
public static Create ( Config config ) : DistributedPubSubSettings
config Akka.Configuration.Config
return DistributedPubSubSettings

DistributedPubSubSettings() public method

Creates a new instance of the DistributedPubSubSettings.
public DistributedPubSubSettings ( string role, RoutingLogic routingLogic, System.TimeSpan gossipInterval, System.TimeSpan removedTimeToLive, int maxDeltaElements ) : System
role string
routingLogic Akka.Routing.RoutingLogic
gossipInterval System.TimeSpan
removedTimeToLive System.TimeSpan
maxDeltaElements int
return System

WithGossipInterval() public method

public WithGossipInterval ( System.TimeSpan gossipInterval ) : DistributedPubSubSettings
gossipInterval System.TimeSpan
return DistributedPubSubSettings

WithMaxDeltaElements() public method

public WithMaxDeltaElements ( int maxDeltaElements ) : DistributedPubSubSettings
maxDeltaElements int
return DistributedPubSubSettings

WithRemovedTimeToLive() public method

public WithRemovedTimeToLive ( System.TimeSpan removedTtl ) : DistributedPubSubSettings
removedTtl System.TimeSpan
return DistributedPubSubSettings

WithRole() public method

public WithRole ( string role ) : DistributedPubSubSettings
role string
return DistributedPubSubSettings

WithRoutingLogic() public method

public WithRoutingLogic ( RoutingLogic routingLogic ) : DistributedPubSubSettings
routingLogic Akka.Routing.RoutingLogic
return DistributedPubSubSettings

Property Details

GossipInterval public_oe property

How often the DistributedPubSubMediator should send out gossip information
public TimeSpan,System GossipInterval
return System.TimeSpan

MaxDeltaElements public_oe property

Maximum number of elements to transfer in one message when synchronizing the registries. Next chunk will be transferred in next round of gossip.
public int MaxDeltaElements
return int

RemovedTimeToLive public_oe property

Removed entries are pruned after this duration.
public TimeSpan,System RemovedTimeToLive
return System.TimeSpan

Role public_oe property

The mediator starts on members tagged with this role. Uses all if undefined.
public string Role
return string

RoutingLogic public_oe property

The routing logic to use for DistributedPubSubMediator.Send.
public RoutingLogic,Akka.Routing RoutingLogic
return Akka.Routing.RoutingLogic