public class AntiEntropyProtocolBuilder extends PrimitiveProtocolBuilder<AntiEntropyProtocolBuilder,AntiEntropyProtocolConfig,AntiEntropyProtocol>
| Constructor and Description |
|---|
AntiEntropyProtocolBuilder(AntiEntropyProtocolConfig config) |
| Modifier and Type | Method and Description |
|---|---|
AntiEntropyProtocol |
build()
Builds the object.
|
AntiEntropyProtocolBuilder |
withAntiEntropyInterval(Duration antiEntropyInterval)
Sets the anti-entropy advertisement interval.
|
AntiEntropyProtocolBuilder |
withGossipInterval(Duration gossipInterval)
Sets the gossip interval.
|
AntiEntropyProtocolBuilder |
withPeers(Set<String> peers)
Sets the set of peers with which to gossip.
|
<E> AntiEntropyProtocolBuilder |
withPeerSelector(PeerSelector<E> peerSelector)
Sets the gossip peer selector.
|
<E> AntiEntropyProtocolBuilder |
withTimestampProvider(TimestampProvider<E> timestampProvider)
Sets the timestamp provider.
|
AntiEntropyProtocolBuilder |
withTombstonesDisabled(boolean tombstonesDisabled)
Sets whether tombstones are enabled.
|
public AntiEntropyProtocolBuilder(AntiEntropyProtocolConfig config)
public <E> AntiEntropyProtocolBuilder withTimestampProvider(TimestampProvider<E> timestampProvider)
timestampProvider - the timestamp providerpublic AntiEntropyProtocolBuilder withPeers(Set<String> peers)
peers - the set of peers with which to gossippublic <E> AntiEntropyProtocolBuilder withPeerSelector(PeerSelector<E> peerSelector)
peerSelector - the gossip peer selectorpublic AntiEntropyProtocolBuilder withTombstonesDisabled(boolean tombstonesDisabled)
tombstonesDisabled - whether tombstones are enabledpublic AntiEntropyProtocolBuilder withGossipInterval(Duration gossipInterval)
gossipInterval - the gossip intervalpublic AntiEntropyProtocolBuilder withAntiEntropyInterval(Duration antiEntropyInterval)
antiEntropyInterval - the anti-entropy advertisement intervalpublic AntiEntropyProtocol build()
BuilderThe returned object may be a new instance of the built class or a recycled instance, depending on the semantics of the builder implementation. Users should never assume that a builder allocates a new instance.
Copyright © 2013–2018. All rights reserved.