Class LeaseManagerConfig
- java.lang.Object
- 
- com.ibm.fhir.database.utils.schema.LeaseManagerConfig
 
- 
- All Implemented Interfaces:
- ILeaseManagerConfig
 
 public class LeaseManagerConfig extends java.lang.Object implements ILeaseManagerConfig LeaseManagerConfig is the configuration for the fhir-persistence-schema's LeaseManager.
- 
- 
Nested Class SummaryNested Classes Modifier and Type Class Description static classLeaseManagerConfig.BuilderBuilder for fluent construction of LeaseManagerConfig
 - 
Method SummaryAll Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static LeaseManagerConfig.Builderbuilder()Factory method to create aLeaseManagerConfig.Builderinstancejava.lang.StringgetHost()Get the hostname used to help identify which instant currently owns a leaseintgetLeaseTimeSeconds()The number of seconds each lease is held for.booleanstayAlive()Flag to indicate we want the LeaseManager to stay alive without requiring regular heartbeats
 
- 
- 
- 
Method Detail- 
getLeaseTimeSecondspublic int getLeaseTimeSeconds() Description copied from interface:ILeaseManagerConfigThe number of seconds each lease is held for. The LeaseManager holding a lease will renew that lease periodically as long as it receives a heartbeat call within lease-time-seconds / 2.- Specified by:
- getLeaseTimeSecondsin interface- ILeaseManagerConfig
- Returns:
 
 - 
getHostpublic java.lang.String getHost() Description copied from interface:ILeaseManagerConfigGet the hostname used to help identify which instant currently owns a lease- Specified by:
- getHostin interface- ILeaseManagerConfig
- Returns:
 
 - 
stayAlivepublic boolean stayAlive() Description copied from interface:ILeaseManagerConfigFlag to indicate we want the LeaseManager to stay alive without requiring regular heartbeats- Specified by:
- stayAlivein interface- ILeaseManagerConfig
- Returns:
 
 - 
builderpublic static LeaseManagerConfig.Builder builder() Factory method to create aLeaseManagerConfig.Builderinstance- Returns:
 
 
- 
 
-