Class CrdtProtocolConfig

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

@Beta
public class CrdtProtocolConfig
extends io.atomix.primitive.protocol.PrimitiveProtocolConfig<CrdtProtocolConfig>
CRDT 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 CrdtProtocolConfig setTimestampProvider​(TimestampProvider timestampProvider)
      Sets the timestamp provider.
      Parameters:
      timestampProvider - the timestamp provider
      Returns:
      the CRDT protocol configuration
    • setTimestampProvider

      public CrdtProtocolConfig setTimestampProvider​(TimestampProviders timestampProvider)
      Sets the timestamp provider.
      Parameters:
      timestampProvider - the timestamp provider
      Returns:
      the CRDT protocol configuration
    • getGossipInterval

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

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