public class AntiEntropyProtocolConfig extends PrimitiveProtocolConfig<AntiEntropyProtocolConfig>
| Constructor and Description |
|---|
AntiEntropyProtocolConfig() |
| Modifier and Type | Method and Description |
|---|---|
Duration |
getAntiEntropyInterval()
Returns the anti-entropy advertisement interval.
|
Duration |
getGossipInterval()
Returns the gossip interval.
|
Set<String> |
getPeers()
Returns the set of peers with which to gossip.
|
PeerSelector |
getPeerSelector()
Returns the gossip peer selector.
|
TimestampProvider |
getTimestampProvider()
Returns the configured timestamp provider.
|
PrimitiveProtocol.Type |
getType()
Returns the type name.
|
boolean |
isTombstonesDisabled()
Returns whether tombstones are enabled.
|
AntiEntropyProtocolConfig |
setAntiEntropyInterval(Duration antiEntropyInterval)
Sets the anti-entropy advertisement interval.
|
AntiEntropyProtocolConfig |
setGossipInterval(Duration gossipInterval)
Sets the gossip interval.
|
AntiEntropyProtocolConfig |
setPeers(Set<String> peers)
Sets the set of peers with which to gossip.
|
AntiEntropyProtocolConfig |
setPeerSelector(PeerSelector peerSelector)
Sets the gossip peer selector.
|
AntiEntropyProtocolConfig |
setPeerSelector(PeerSelectors peerSelector)
Sets the gossip peer selector.
|
AntiEntropyProtocolConfig |
setTimestampProvider(TimestampProvider timestampProvider)
Sets the timestamp provider.
|
AntiEntropyProtocolConfig |
setTimestampProvider(TimestampProviders timestampProvider)
Sets the timestamp provider.
|
AntiEntropyProtocolConfig |
setTombstonesDisabled(boolean tombstonesDisabled)
Sets whether tombstones are enabled.
|
public PrimitiveProtocol.Type getType()
TypedConfigpublic TimestampProvider getTimestampProvider()
public AntiEntropyProtocolConfig setTimestampProvider(TimestampProvider timestampProvider)
timestampProvider - the timestamp providerpublic AntiEntropyProtocolConfig setTimestampProvider(TimestampProviders timestampProvider)
timestampProvider - the timestamp providerpublic Set<String> getPeers()
public AntiEntropyProtocolConfig setPeers(Set<String> peers)
peers - the set of peers with which to gossippublic PeerSelector getPeerSelector()
public AntiEntropyProtocolConfig setPeerSelector(PeerSelector peerSelector)
peerSelector - the gossip peer selectorpublic AntiEntropyProtocolConfig setPeerSelector(PeerSelectors peerSelector)
peerSelector - the gossip peer selectorpublic boolean isTombstonesDisabled()
public AntiEntropyProtocolConfig setTombstonesDisabled(boolean tombstonesDisabled)
tombstonesDisabled - whether tombstones are enabledpublic Duration getGossipInterval()
public AntiEntropyProtocolConfig setGossipInterval(Duration gossipInterval)
gossipInterval - the gossip intervalpublic Duration getAntiEntropyInterval()
public AntiEntropyProtocolConfig setAntiEntropyInterval(Duration antiEntropyInterval)
antiEntropyInterval - the anti-entropy advertisement intervalCopyright © 2013–2018. All rights reserved.