public class SDKReadinessGates extends Object
| Constructor and Description |
|---|
SDKReadinessGates() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
areSegmentsReady(long milliseconds)
Returns true if the SDK is ready w.r.t segments.
|
boolean |
areSplitsReady(long milliseconds)
Returns true if the SDK is ready w.r.t splits.
|
boolean |
isSDKReady(long milliseconds)
Returns true if the SDK is ready.
|
boolean |
isSegmentRegistered(String segmentName) |
boolean |
registerSegments(Collection<String> segmentNames)
Registers the segments that the SDK should download before it is ready.
|
void |
segmentIsReady(String segmentName)
Records that the SDK segment initialization for this segment is done.
|
void |
splitsAreReady()
Records that the SDK split initialization is done.
|
public boolean isSDKReady(long milliseconds)
throws InterruptedException
milliseconds - time to wait for an answer. if the value is zero or negative, we will not
block for an answer.InterruptedException - if this operation was interrupted.public void splitsAreReady()
public boolean registerSegments(Collection<String> segmentNames) throws InterruptedException
segmentNames - InterruptedExceptionpublic void segmentIsReady(String segmentName)
public boolean isSegmentRegistered(String segmentName)
public boolean areSegmentsReady(long milliseconds)
throws InterruptedException
milliseconds - time to wait for an answer. if the value is zero or negative, we will not
block for an answer.InterruptedException - if this operation was interrupted.public boolean areSplitsReady(long milliseconds)
throws InterruptedException
milliseconds - time to wait for an answer. if the value is zero or negative, we will not
block for an answer.InterruptedException - if this operation was interrupted.Copyright © 2018. All rights reserved.