public class ModelGeneration extends Object implements Serializable
Modifier and Type | Field and Description |
---|---|
static int |
CLUSTER_GENERATION_ACCEPTABLE_STALENESS_LAG |
static int |
LOAD_GENERATION_ACCEPTABLE_STALENESS_LAG |
Constructor and Description |
---|
ModelGeneration(int clusterGeneration,
long loadGeneration) |
Modifier and Type | Method and Description |
---|---|
int |
clusterGeneration() |
boolean |
equals(Object o) |
int |
hashCode() |
boolean |
isStale(ModelGeneration latestModelGeneration)
Check whether this model generation is stale.
|
long |
loadGeneration() |
String |
toString() |
public static final int CLUSTER_GENERATION_ACCEPTABLE_STALENESS_LAG
public static final int LOAD_GENERATION_ACCEPTABLE_STALENESS_LAG
public ModelGeneration(int clusterGeneration, long loadGeneration)
public int clusterGeneration()
public long loadGeneration()
public boolean isStale(ModelGeneration latestModelGeneration)
latestModelGeneration
- The model generation to compare against this model generation for staleness check.