Class BigSegmentsConfiguration
- java.lang.Object
-
- com.launchdarkly.sdk.server.interfaces.BigSegmentsConfiguration
-
public final class BigSegmentsConfiguration extends java.lang.Object
Encapsulates the SDK's configuration with regard to Big Segments.Big Segments are a specific type of user segments. For more information, read the LaunchDarkly documentation .
See
BigSegmentsConfigurationBuilder
for more details on these properties.- Since:
- 5.7.0
- See Also:
BigSegmentsConfigurationBuilder
-
-
Constructor Summary
Constructors Constructor Description BigSegmentsConfiguration(BigSegmentStore bigSegmentStore, int userCacheSize, java.time.Duration userCacheTime, java.time.Duration statusPollInterval, java.time.Duration staleAfter)
Creates a newBigSegmentsConfiguration
instance with the specified values.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.time.Duration
getStaleAfter()
Gets the value set byBigSegmentsConfigurationBuilder.staleAfter(Duration)
java.time.Duration
getStatusPollInterval()
Gets the value set byBigSegmentsConfigurationBuilder.statusPollInterval(Duration)
BigSegmentStore
getStore()
Gets the data store instance that is used for Big Segments data.int
getUserCacheSize()
Gets the value set byBigSegmentsConfigurationBuilder.userCacheSize(int)
java.time.Duration
getUserCacheTime()
Gets the value set byBigSegmentsConfigurationBuilder.userCacheTime(Duration)
-
-
-
Constructor Detail
-
BigSegmentsConfiguration
public BigSegmentsConfiguration(BigSegmentStore bigSegmentStore, int userCacheSize, java.time.Duration userCacheTime, java.time.Duration statusPollInterval, java.time.Duration staleAfter)
Creates a newBigSegmentsConfiguration
instance with the specified values.See
BigSegmentsConfigurationBuilder
for more information on the configuration fields.- Parameters:
bigSegmentStore
- the Big Segments store instanceuserCacheSize
- the user cache sizeuserCacheTime
- the user cache timestatusPollInterval
- the status poll intervalstaleAfter
- the interval after which store data is considered stale
-
-
Method Detail
-
getStore
public BigSegmentStore getStore()
Gets the data store instance that is used for Big Segments data.- Returns:
- the configured Big Segment store
-
getUserCacheSize
public int getUserCacheSize()
Gets the value set byBigSegmentsConfigurationBuilder.userCacheSize(int)
- Returns:
- the configured user cache size limit
-
getUserCacheTime
public java.time.Duration getUserCacheTime()
Gets the value set byBigSegmentsConfigurationBuilder.userCacheTime(Duration)
- Returns:
- the configured user cache time duration
-
getStatusPollInterval
public java.time.Duration getStatusPollInterval()
Gets the value set byBigSegmentsConfigurationBuilder.statusPollInterval(Duration)
- Returns:
- the configured status poll interval
-
getStaleAfter
public java.time.Duration getStaleAfter()
Gets the value set byBigSegmentsConfigurationBuilder.staleAfter(Duration)
- Returns:
- the configured stale after interval
-
-