Interface ILeaseManager
-
- All Known Implementing Classes:
LeaseManager
public interface ILeaseManager
Provides feedback on whether this instance owns the lease to the configured FHIR data schema
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description boolean
hasLease()
Do we have the lease?void
signalHeartbeat()
Marks the heartbeat flag true in the LeaseManager implementation to signal that forward progress is being made so the lease should continue to be held.
-
-
-
Method Detail
-
hasLease
boolean hasLease()
Do we have the lease?- Returns:
-
signalHeartbeat
void signalHeartbeat()
Marks the heartbeat flag true in the LeaseManager implementation to signal that forward progress is being made so the lease should continue to be held. Ignored (not required) ifILeaseManagerConfig.stayAlive()
is true (which is default).- Throws:
java.lang.IllegalStateException
- if the lease is no longer owned by this instance
-
-