Interface BigSegmentStoreStatusProvider
-
public interface BigSegmentStoreStatusProvider
An 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 class
BigSegmentStoreStatusProvider.Status
Information about the status of a Big Segment store, provided byBigSegmentStoreStatusProvider
static interface
BigSegmentStoreStatusProvider.StatusListener
Interface for receiving Big Segment status change notifications.
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
addStatusListener(BigSegmentStoreStatusProvider.StatusListener listener)
Subscribes for notifications of status changes.BigSegmentStoreStatusProvider.Status
getStatus()
Returns the current status of the store.void
removeStatusListener(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
-
-