Skip to content

Commit

Permalink
Delete not usage constructor and fix java doc of the new method
Browse files Browse the repository at this point in the history
  • Loading branch information
mcasas993 committed Jan 10, 2025
1 parent 5655f6c commit 1977012
Showing 1 changed file with 0 additions and 20 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -59,25 +59,6 @@ public Document(Agent agent, Command command) {
this.deliveryTimestamp = timestamp.plusSeconds(command.getTimeout());
}

/**
* Custom constructor for existent documents.
*
* @param agent "agent" nested fields.
* @param command "command" nested fields.
*/
public Document(
String id,
Agent agent,
Command command,
ZonedDateTime timestamp,
ZonedDateTime deliveryTimestamp) {
this.id = id;
this.agent = agent;
this.command = command;
this.timestamp = timestamp;
this.deliveryTimestamp = deliveryTimestamp;
}

/**
* Parses data from an XContentParser into this model.
*
Expand Down Expand Up @@ -107,7 +88,6 @@ public static Document parse(XContentParser parser) throws IOException {
*
* @param hit search hit parser.
* @return delivery timestamp from Document in search hit.
* @throws IOException parsing error occurred.
*/
public static ZonedDateTime deliveryTimestampFromSearchHit(SearchHit hit) {
ZonedDateTime deliveryTimestamp = null;
Expand Down

0 comments on commit 1977012

Please sign in to comment.