From cba14a089ae023b22167edf34afebe128141e0b1 Mon Sep 17 00:00:00 2001 From: Aakarsh Singh Date: Thu, 16 May 2024 12:36:10 +0530 Subject: [PATCH] Update PullableJndiSrcService.java Added setters & getters for lastSuccessfulSync --- .../java/org/lsc/jndi/PullableJndiSrcService.java | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/src/main/java/org/lsc/jndi/PullableJndiSrcService.java b/src/main/java/org/lsc/jndi/PullableJndiSrcService.java index 535b2f77..6b6d518f 100644 --- a/src/main/java/org/lsc/jndi/PullableJndiSrcService.java +++ b/src/main/java/org/lsc/jndi/PullableJndiSrcService.java @@ -163,4 +163,18 @@ public Entry 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; + } }