Package 

Class ConsistencyManager

  • All Implemented Interfaces:
    com.onesignal.common.consistency.models.IConsistencyManager

    
    public final class ConsistencyManager
     implements IConsistencyManager
                        

    Manages read-your-write tokens for more accurate segment membership calculation. Uses customizable conditions that block retrieval of the newest token until met.

    Usage: val consistencyManager = ConsistencyManager<MyEnum>() val updateConditionDeferred = consistencyManager.registerCondition(MyCustomCondition()) val rywToken = updateConditionDeferred.await()

    • Constructor Detail

      • ConsistencyManager

        ConsistencyManager()