Skip to content

Commit

Permalink
Update PullableJndiSrcService.java
Browse files Browse the repository at this point in the history
Added setters & getters for lastSuccessfulSync
  • Loading branch information
aakarshsingh authored and rouazana committed May 26, 2024
1 parent f4b24fe commit cba14a0
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions src/main/java/org/lsc/jndi/PullableJndiSrcService.java
Original file line number Diff line number Diff line change
Expand Up @@ -163,4 +163,18 @@ public Entry<String, LscDatasets> getNextId() throws LscServiceException {
public long getInterval() {
return interval*1000;
}

/**
* Getter for lastSuccessfulSync, useful in cases where the consumer has to work around this to reset this to zero for a forced fresh sync.
*/
public Date getLastSuccessfulSync() {
return this.lastSuccessfulSync;
}

/**
* Setter for lastSuccessfulSync, useful in cases where the consumer has to work around this to reset this to zero for a forced fresh sync.
*/
public void setLastSuccessfulSync(Date lastSuccessfulSync) {
this.lastSuccessfulSync = lastSuccessfulSync;
}
}

0 comments on commit cba14a0

Please sign in to comment.