| Constructor and Description |
|---|
HarvestStartedEvent(String harvesterHash,
int maxHarvestableDocuments)
Constructor that sets up the payload, and uses the current time as the start timestamp.
|
HarvestStartedEvent(String harvesterHash,
int maxHarvestableDocuments,
long timestamp)
Constructor that sets up the payload, and allows to define the start timestamp.
|
| Modifier and Type | Method and Description |
|---|---|
String |
getHarvesterHash()
Returns the version hash of the harvested documents.
|
int |
getMaxHarvestableDocuments()
Returns the maximum number of harvestable documents.
|
long |
getStartTimestamp()
Returns the unix timestamp at which the event was created.
|
public HarvestStartedEvent(String harvesterHash, int maxHarvestableDocuments)
harvesterHash - a hash value representing the current state of the source datamaxHarvestableDocuments - the maximum number of expected documentspublic HarvestStartedEvent(String harvesterHash, int maxHarvestableDocuments, long timestamp)
harvesterHash - a hash value representing the current state of the source datamaxHarvestableDocuments - the maximum number of expected documentstimestamp - the time at wich the harvest startedpublic long getStartTimestamp()
public String getHarvesterHash()
public int getMaxHarvestableDocuments()
Copyright © 2017–2019. All rights reserved.