Class AntiEntropyProtocolConfig

java.lang.Object
io.atomix.primitive.protocol.PrimitiveProtocolConfig<AntiEntropyProtocolConfig>
io.atomix.protocols.gossip.AntiEntropyProtocolConfig
All Implemented Interfaces:
io.atomix.utils.config.Config, io.atomix.utils.config.TypedConfig<io.atomix.primitive.protocol.PrimitiveProtocol.Type>

@Beta
public class AntiEntropyProtocolConfig
extends io.atomix.primitive.protocol.PrimitiveProtocolConfig<AntiEntropyProtocolConfig>
Anti-entropy protocol configuration.
  • Constructor Details

  • Method Details

    • getType

      public io.atomix.primitive.protocol.PrimitiveProtocol.Type getType()
    • getTimestampProvider

      public TimestampProvider getTimestampProvider()
      Returns the configured timestamp provider.
      Returns:
      the configured timestamp provider
    • setTimestampProvider

      public AntiEntropyProtocolConfig setTimestampProvider​(TimestampProvider timestampProvider)
      Sets the timestamp provider.
      Parameters:
      timestampProvider - the timestamp provider
      Returns:
      the anti-entropy protocol configuration
    • setTimestampProvider

      public AntiEntropyProtocolConfig setTimestampProvider​(TimestampProviders timestampProvider)
      Sets the timestamp provider.
      Parameters:
      timestampProvider - the timestamp provider
      Returns:
      the anti-entropy protocol configuration
    • getPeers

      public Set<String> getPeers()
      Returns the set of peers with which to gossip.
      Returns:
      the set of peers with which to gossip
    • setPeers

      public AntiEntropyProtocolConfig setPeers​(Set<String> peers)
      Sets the set of peers with which to gossip.
      Parameters:
      peers - the set of peers with which to gossip
      Returns:
      the anti-entropy protocol configuration
    • getPeerSelector

      public PeerSelector getPeerSelector()
      Returns the gossip peer selector.
      Returns:
      the gossip peer selector
    • setPeerSelector

      public AntiEntropyProtocolConfig setPeerSelector​(PeerSelector peerSelector)
      Sets the gossip peer selector.
      Parameters:
      peerSelector - the gossip peer selector
      Returns:
      the anti-entropy protocol configuration
    • setPeerSelector

      public AntiEntropyProtocolConfig setPeerSelector​(PeerSelectors peerSelector)
      Sets the gossip peer selector.
      Parameters:
      peerSelector - the gossip peer selector
      Returns:
      the anti-entropy protocol configuration
    • isTombstonesDisabled

      public boolean isTombstonesDisabled()
      Returns whether tombstones are enabled.
      Returns:
      whether tombstones are enabled
    • setTombstonesDisabled

      public AntiEntropyProtocolConfig setTombstonesDisabled​(boolean tombstonesDisabled)
      Sets whether tombstones are enabled.
      Parameters:
      tombstonesDisabled - whether tombstones are enabled
      Returns:
      the anti-entropy protocol configuration
    • getGossipInterval

      public java.time.Duration getGossipInterval()
      Returns the gossip interval.
      Returns:
      the gossip interval
    • setGossipInterval

      public AntiEntropyProtocolConfig setGossipInterval​(java.time.Duration gossipInterval)
      Sets the gossip interval.
      Parameters:
      gossipInterval - the gossip interval
      Returns:
      the anti-entropy protocol configuration
    • getAntiEntropyInterval

      public java.time.Duration getAntiEntropyInterval()
      Returns the anti-entropy advertisement interval.
      Returns:
      the anti-entropy advertisement interval
    • setAntiEntropyInterval

      public AntiEntropyProtocolConfig setAntiEntropyInterval​(java.time.Duration antiEntropyInterval)
      Sets the anti-entropy advertisement interval.
      Parameters:
      antiEntropyInterval - the anti-entropy advertisement interval
      Returns:
      the anti-entropy protocol configuration