Package com.ibm.fhir.schema.api
Interface ILeaseManager
- 
- All Known Implementing Classes:
- LeaseManager
 
 public interface ILeaseManagerProvides feedback on whether this instance owns the lease to the configured FHIR data schema
- 
- 
Method SummaryAll Methods Instance Methods Abstract Methods Modifier and Type Method Description booleanhasLease()Do we have the lease?voidsignalHeartbeat()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- 
hasLeaseboolean hasLease() Do we have the lease?- Returns:
 
 - 
signalHeartbeatvoid 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:
- IllegalStateException- if the lease is no longer owned by this instance
 
 
- 
 
-