Interface ObjectContext
- All Superinterfaces:
Context, SharedObjectContext
- All Known Subinterfaces:
WorkflowContext
- All Known Implementing Classes:
FakeContext
@Deprecated(since="2.9",
forRemoval=true)
public interface ObjectContext
extends SharedObjectContext
Deprecated, for removal: This API element is subject to removal in a future version.
This interface can be used only within exclusive handlers of virtual objects. It extends
Context adding access to the virtual object instance key-value state storage.
NOTE: This interface MUST NOT be accessed concurrently since it can lead to different orderings of user actions, corrupting the execution of the invocation.
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionvoidDeprecated, for removal: This API element is subject to removal in a future version.Clears the state stored under key.voidclearAll()Deprecated, for removal: This API element is subject to removal in a future version.Clears all the state of this virtual object instance key-value state storage<T> voidMethods inherited from interface Context
awakeable, awakeable, awakeableHandle, call, instantNow, invocationHandle, invocationHandle, invocationHandle, random, request, run, run, run, run, run, run, run, run, run, runAsync, runAsync, runAsync, runAsync, runAsync, runAsync, runAsync, runAsync, runAsync, send, send, signal, signal, sleep, timer, timerMethods inherited from interface SharedObjectContext
get, key, stateKeys
-
Method Details
-
clear
Deprecated, for removal: This API element is subject to removal in a future version.Clears the state stored under key.- Parameters:
key- identifying the state to clear.
-
clearAll
void clearAll()Deprecated, for removal: This API element is subject to removal in a future version.Clears all the state of this virtual object instance key-value state storage -
set
Deprecated, for removal: This API element is subject to removal in a future version.- Parameters:
key- identifying the value to store and its type.value- to store under the given key. MUST NOT be null.
-
Context-parameter programming model is superseded by the reflection-based API. Rather than accepting anObjectContextparameter, useRestate.state()(which supports both reads and writes) inside the handler. See the migration guide.