Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added setters & getters for lastSuccessfulSync #286

Merged
merged 1 commit into from
May 26, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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;
}
}
Loading