Interface BigSegmentStoreStatusProvider
-
public interface BigSegmentStoreStatusProviderAn interface for querying the status of a Big Segment store.The Big Segment store is the component that receives information about Big Segments, normally from a database populated by the LaunchDarkly Relay Proxy.
Big Segments are a specific type of user segments. For more information, read the LaunchDarkly documentation .
An implementation of this interface is returned by
LDClient.getBigSegmentStoreStatusProvider(). Application code never needs to implement this interface.- Since:
- 5.7.0
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static classBigSegmentStoreStatusProvider.StatusInformation about the status of a Big Segment store, provided byBigSegmentStoreStatusProviderstatic interfaceBigSegmentStoreStatusProvider.StatusListenerInterface for receiving Big Segment status change notifications.
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidaddStatusListener(BigSegmentStoreStatusProvider.StatusListener listener)Subscribes for notifications of status changes.BigSegmentStoreStatusProvider.StatusgetStatus()Returns the current status of the store.voidremoveStatusListener(BigSegmentStoreStatusProvider.StatusListener listener)Unsubscribes from notifications of status changes.
-
-
-
Method Detail
-
getStatus
BigSegmentStoreStatusProvider.Status getStatus()
Returns the current status of the store.- Returns:
- the latest status; will never be null
-
addStatusListener
void addStatusListener(BigSegmentStoreStatusProvider.StatusListener listener)
Subscribes for notifications of status changes.- Parameters:
listener- the listener to add
-
removeStatusListener
void removeStatusListener(BigSegmentStoreStatusProvider.StatusListener listener)
Unsubscribes from notifications of status changes.- Parameters:
listener- the listener to remove; if no such listener was added, this does nothing
-
-