| Modifier and Type | Field and Description |
|---|---|
static int |
DEFAULT_GOSSIP_FANOUT |
static long |
DEFAULT_GOSSIP_INTERVAL |
static int |
DEFAULT_GOSSIP_REPEAT_MULT |
static int |
DEFAULT_LOCAL_GOSSIP_INTERVAL |
static int |
DEFAULT_LOCAL_GOSSIP_REPEAT_MULT |
static int |
DEFAULT_WAN_GOSSIP_FANOUT |
static int |
GOSSIP_SEGMENTATION_THRESHOLD |
| Constructor and Description |
|---|
GossipConfig() |
| Modifier and Type | Method and Description |
|---|---|
GossipConfig |
clone() |
static GossipConfig |
defaultConfig() |
static GossipConfig |
defaultLanConfig()
Creates
GossipConfig with default settings for cluster on LAN network. |
static GossipConfig |
defaultLocalConfig()
Creates
GossipConfig with default settings for cluster on local loopback interface. |
static GossipConfig |
defaultWanConfig()
Creates
GossipConfig with default settings for cluster on WAN network. |
int |
gossipFanout() |
GossipConfig |
gossipFanout(int gossipFanout)
Sets gossipFanout.
|
long |
gossipInterval() |
GossipConfig |
gossipInterval(long gossipInterval)
Sets gossipInterval.
|
int |
gossipRepeatMult() |
GossipConfig |
gossipRepeatMult(int gossipRepeatMult)
Sets gossipRepeatMult.
|
int |
gossipSegmentationThreshold()
A threshold for received gossip id intervals.
|
GossipConfig |
gossipSegmentationThreshold(int gossipSegmentationThreshold)
Sets gossipSegmentationThreshold.
|
String |
toString() |
public static final long DEFAULT_GOSSIP_INTERVAL
public static final int DEFAULT_GOSSIP_FANOUT
public static final int DEFAULT_GOSSIP_REPEAT_MULT
public static final int GOSSIP_SEGMENTATION_THRESHOLD
public static final int DEFAULT_WAN_GOSSIP_FANOUT
public static final int DEFAULT_LOCAL_GOSSIP_REPEAT_MULT
public static final int DEFAULT_LOCAL_GOSSIP_INTERVAL
public static GossipConfig defaultConfig()
public static GossipConfig defaultLanConfig()
GossipConfig with default settings for cluster on LAN network.GossipConfigpublic static GossipConfig defaultWanConfig()
GossipConfig with default settings for cluster on WAN network.GossipConfigpublic static GossipConfig defaultLocalConfig()
GossipConfig with default settings for cluster on local loopback interface.GossipConfigpublic GossipConfig gossipFanout(int gossipFanout)
gossipFanout - gossip fanoutGossipConfigpublic int gossipFanout()
public GossipConfig gossipInterval(long gossipInterval)
gossipInterval - gossip intervalGossipConfigpublic long gossipInterval()
public GossipConfig gossipRepeatMult(int gossipRepeatMult)
gossipRepeatMult - gossip repeat multiplierGossipConfigpublic int gossipRepeatMult()
public GossipConfig gossipSegmentationThreshold(int gossipSegmentationThreshold)
gossipSegmentationThreshold - gossip segmentation thresholdGossipConfiggossipSegmentationThreshold()public int gossipSegmentationThreshold()
For example if we received gossip with id 1,2 and 5 then we will have 2 intervals [1, 2], [5, 5].
public GossipConfig clone()
Copyright © 2015–2020. All rights reserved.