Class LeaseManagerConfig.Builder
- java.lang.Object
-
- com.ibm.fhir.database.utils.schema.LeaseManagerConfig.Builder
-
- Enclosing class:
- LeaseManagerConfig
public static class LeaseManagerConfig.Builder extends java.lang.Object
Builder for fluent construction of LeaseManagerConfig
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description LeaseManagerConfig
build()
Build the immutable LeaseManagerConfig object using the current state of thisLeaseManagerConfig.Builder
LeaseManagerConfig.Builder
withHost(java.lang.String host)
Set the host propertyLeaseManagerConfig.Builder
withLeaseTimeSeconds(int secs)
Set the leaseTimeSeconds propertyLeaseManagerConfig.Builder
withStayAlive(boolean flag)
Set the stayAlive property
-
-
-
Method Detail
-
withLeaseTimeSeconds
public LeaseManagerConfig.Builder withLeaseTimeSeconds(int secs)
Set the leaseTimeSeconds property- Parameters:
secs
-- Returns:
-
withHost
public LeaseManagerConfig.Builder withHost(java.lang.String host)
Set the host property- Parameters:
host
-- Returns:
-
withStayAlive
public LeaseManagerConfig.Builder withStayAlive(boolean flag)
Set the stayAlive property- Parameters:
flag
-- Returns:
-
build
public LeaseManagerConfig build()
Build the immutable LeaseManagerConfig object using the current state of thisLeaseManagerConfig.Builder
- Returns:
-
-