Package io.atomix.protocols.gossip
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 Summary
Constructors Constructor Description CrdtProtocolConfig() -
Method Summary
Modifier and Type Method Description java.time.DurationgetGossipInterval()Returns the gossip interval.TimestampProvidergetTimestampProvider()Returns the configured timestamp provider.io.atomix.primitive.protocol.PrimitiveProtocol.TypegetType()CrdtProtocolConfigsetGossipInterval(java.time.Duration gossipInterval)Sets the gossip interval.CrdtProtocolConfigsetTimestampProvider(TimestampProvider timestampProvider)Sets the timestamp provider.CrdtProtocolConfigsetTimestampProvider(TimestampProviders timestampProvider)Sets the timestamp provider.
-
Constructor Details
-
CrdtProtocolConfig
public CrdtProtocolConfig()
-
-
Method Details
-
getType
public io.atomix.primitive.protocol.PrimitiveProtocol.Type getType() -
getTimestampProvider
Returns the configured timestamp provider.- Returns:
- the configured timestamp provider
-
setTimestampProvider
Sets the timestamp provider.- Parameters:
timestampProvider- the timestamp provider- Returns:
- the CRDT protocol configuration
-
setTimestampProvider
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
Sets the gossip interval.- Parameters:
gossipInterval- the gossip interval- Returns:
- the anti-entropy protocol configuration
-