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 Summary
Nested Classes Modifier and Type Class Description static class
LeaseManagerConfig.Builder
Builder for fluent construction of LeaseManagerConfig
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static LeaseManagerConfig.Builder
builder()
Factory method to create aLeaseManagerConfig.Builder
instancejava.lang.String
getHost()
Get the hostname used to help identify which instant currently owns a leaseint
getLeaseTimeSeconds()
The number of seconds each lease is held for.boolean
stayAlive()
Flag to indicate we want the LeaseManager to stay alive without requiring regular heartbeats
-
-
-
Method Detail
-
getLeaseTimeSeconds
public int getLeaseTimeSeconds()
Description copied from interface:ILeaseManagerConfig
The 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:
getLeaseTimeSeconds
in interfaceILeaseManagerConfig
- Returns:
-
getHost
public java.lang.String getHost()
Description copied from interface:ILeaseManagerConfig
Get the hostname used to help identify which instant currently owns a lease- Specified by:
getHost
in interfaceILeaseManagerConfig
- Returns:
-
stayAlive
public boolean stayAlive()
Description copied from interface:ILeaseManagerConfig
Flag to indicate we want the LeaseManager to stay alive without requiring regular heartbeats- Specified by:
stayAlive
in interfaceILeaseManagerConfig
- Returns:
-
builder
public static LeaseManagerConfig.Builder builder()
Factory method to create aLeaseManagerConfig.Builder
instance- Returns:
-
-