setState
abstract fun setState( namespaceAndName: NamespaceAndName, state: BaseContextState, refreshPolicy: StateRefreshPolicy, type: ContextType, stateRequestToken: Int = FORCE_SET_TOKEN): ContextSetterInterface.SetStateResult
Content copied to clipboard
Set a state
Parameters
namespaceAndName
the namespace and name of state
state
the state string formatted json
refreshPolicy
the refresh policy
stateRequestToken
the token which should be used to update state.
If call at ContextStateProvider.provideState, use stateRequestToken given.
(to set state unconditionally, default: FORCE_SET_TOKEN)