setState

abstract fun setState(    namespaceAndName: NamespaceAndName,     state: BaseContextState,     refreshPolicy: StateRefreshPolicy,     type: ContextType,     stateRequestToken: Int = FORCE_SET_TOKEN): ContextSetterInterface.SetStateResult

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.