Enum StateRequestType
- All Implemented Interfaces:
Serializable,Comparable<StateRequestType>
The type of processing request for
State from **users' perspective**. Each interface of
State and its sub-interfaces will have a corresponding enum entry.
TODO: Serialization and Deserialization.
-
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionAdd element to aggregating state byAppendingState.asyncAdd(Object).Get value from aggregating state byAppendingState.asyncGet().Clear the current partition of the state,State.asyncClear().Defined by different state backends.Continuously load elements for one iterator.Add value to list state,AppendingState.asyncAdd(Object).Add multiple value to list of current partition,ListState.asyncAddAll(List).Get from list state,AppendingState.asyncGet().Put a list to current partition,ListState.asyncUpdate(List).Check key existence of current partition,MapState.asyncContains(Object)}.Get a value by a key from current partition,MapState.asyncGet(Object).Check the existence of any key-value mapping within current partition,MapState.asyncIsEmpty().Get an iterator of key-value mapping within current partition,MapState.asyncEntries().Get an iterator of keys within current partition,MapState.asyncKeys().Get an iterator of values within current partition,MapState.asyncValues().Update a key-value pair of current partition,MapState.asyncPut(Object, Object).Update multiple key-value pairs of current partition,MapState.asyncPutAll(Map).Remove a key-value mapping within current partition,MapState.asyncRemove(Object).Add element into reducing state,AppendingState.asyncAdd(Object).Get from reducing state,AppendingState.asyncGet().A sync point with AEC, does nothing with state, checking if the key is occupied by others and blocking if needed.Get value from current partition,ValueState.asyncValue().Update value to current partition,ValueState.asyncUpdate(Object). -
Method Summary
Modifier and TypeMethodDescriptionstatic StateRequestTypeReturns the enum constant of this type with the specified name.static StateRequestType[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
SYNC_POINT
A sync point with AEC, does nothing with state, checking if the key is occupied by others and blocking if needed. This is a special one that only created by the runtime framework without visibility to users. -
CLEAR
Clear the current partition of the state,State.asyncClear(). -
VALUE_GET
Get value from current partition,ValueState.asyncValue(). -
VALUE_UPDATE
Update value to current partition,ValueState.asyncUpdate(Object). -
LIST_GET
Get from list state,AppendingState.asyncGet(). -
LIST_ADD
Add value to list state,AppendingState.asyncAdd(Object). -
LIST_UPDATE
Put a list to current partition,ListState.asyncUpdate(List). -
LIST_ADD_ALL
Add multiple value to list of current partition,ListState.asyncAddAll(List). -
MAP_GET
Get a value by a key from current partition,MapState.asyncGet(Object). -
MAP_CONTAINS
Check key existence of current partition,MapState.asyncContains(Object)}. -
MAP_PUT
Update a key-value pair of current partition,MapState.asyncPut(Object, Object). -
MAP_PUT_ALL
Update multiple key-value pairs of current partition,MapState.asyncPutAll(Map). -
MAP_ITER
Get an iterator of key-value mapping within current partition,MapState.asyncEntries(). -
MAP_ITER_KEY
Get an iterator of keys within current partition,MapState.asyncKeys(). -
MAP_ITER_VALUE
Get an iterator of values within current partition,MapState.asyncValues(). -
MAP_REMOVE
Remove a key-value mapping within current partition,MapState.asyncRemove(Object). -
MAP_IS_EMPTY
Check the existence of any key-value mapping within current partition,MapState.asyncIsEmpty(). -
ITERATOR_LOADING
Continuously load elements for one iterator. -
REDUCING_GET
Get from reducing state,AppendingState.asyncGet(). -
REDUCING_ADD
Add element into reducing state,AppendingState.asyncAdd(Object). -
AGGREGATING_GET
Get value from aggregating state byAppendingState.asyncGet(). -
AGGREGATING_ADD
Add element to aggregating state byAppendingState.asyncAdd(Object). -
CUSTOMIZED
Defined by different state backends.
-
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum type has no constant with the specified nameNullPointerException- if the argument is null
-