Class LeaseManagerConfig
- java.lang.Object
 - 
- org.linuxforhealth.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 Summary
Nested Classes Modifier and Type Class Description static classLeaseManagerConfig.BuilderBuilder for fluent construction of LeaseManagerConfig 
- 
Method Summary
All 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
- 
getLeaseTimeSeconds
public 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 interfaceILeaseManagerConfig- Returns:
 
 
- 
getHost
public java.lang.String getHost()
Description copied from interface:ILeaseManagerConfigGet the hostname used to help identify which instant currently owns a lease- Specified by:
 getHostin interfaceILeaseManagerConfig- Returns:
 
 
- 
stayAlive
public boolean stayAlive()
Description copied from interface:ILeaseManagerConfigFlag to indicate we want the LeaseManager to stay alive without requiring regular heartbeats- Specified by:
 stayAlivein interfaceILeaseManagerConfig- Returns:
 
 
- 
builder
public static LeaseManagerConfig.Builder builder()
Factory method to create aLeaseManagerConfig.Builderinstance- Returns:
 
 
 - 
 
 -