-
- All Implemented Interfaces:
-
com.onesignal.common.events.IEventNotifier
public interface ISingletonModelStore<TModel extends Model> implements IEventNotifier<ISingletonModelStoreChangeHandler<TModel>>
A model store that expects to only contain a single Model within it. It behaves like an IModelStore with the exception that there are no IDs, and there is an expectation that the (one) model always exists.
-
-
Method Summary
-
-
Method Detail
-
replace
abstract Unit replace(TModel model, String tag)
Replace the existing model with the new model provided.
- Parameters:
model- A model that contains all the data for the new effective model.tag- The tag which identifies how/why the model is being replaced.
-
getHasSubscribers
abstract Boolean getHasSubscribers()
Whether there are currently any subscribers.
-
-
-
-