Package com.ibm.fhir.schema.app
Class LeaseManagerConfig
- java.lang.Object
-
- com.ibm.fhir.schema.app.LeaseManagerConfig
-
- All Implemented Interfaces:
ILeaseManagerConfig
public class LeaseManagerConfig extends Object implements ILeaseManagerConfig
-
-
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.BuilderinstanceStringgetHost()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 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:
-
-