Interface ManagedPartitionDefinition<T>
- Type Parameters:
T- stateless activation-owned reducer
- All Superinterfaces:
ManagedComponentDefinition<T>, ManagedHostAdapter<T>, ManagedHostedAdapter<T>
Generated direct-access plan for a deterministic config-only POJO partition reducer.
State is owned by the encoded resource, not by mutable fields of the component. Reducer code
must be deterministic, bounded and free of external effects; this contract is not a Java sandbox.
The host validates concrete A01 data types and exact program compatibility before registration.
-
Method Summary
Modifier and TypeMethodDescriptionComputes replacement state from independently decoded state and command values.Class<?> Returns the explicitly registered command type.Creates initial state without external effects.Returns the exact hosted partition descriptor.Computes a view from independently decoded state without changing live resource state.Class<?> Returns the explicitly registered query type.Class<?> Returns the explicitly registered state type.Class<?> viewType()Returns the explicitly registered view type.Methods inherited from interface ManagedComponentDefinition
create, dependencies, inject, name, owned, qualifiers, scope, typeMethods inherited from interface ManagedHostAdapter
invoke, lifecycle, probe, probes, remoteMethodsMethods inherited from interface ManagedHostedAdapter
hostedFeatures, invokeHosted
-
Method Details
-
partition
ManagedHostedFeature partition()Returns the exact hosted partition descriptor.- Returns:
- one feature of kind partition
-
stateType
Class<?> stateType()Returns the explicitly registered state type.- Returns:
- concrete record or supported scalar/bytes type
-
commandType
-
queryType
-
viewType
-
initial
-
apply
Computes replacement state from independently decoded state and command values.- Parameters:
instance- stateless reducerstate- independent current statecommand- independent command- Returns:
- nonnull replacement state of stateType()
- Throws:
Exception- for a rejected business command
-
query
Computes a view from independently decoded state without changing live resource state.- Parameters:
instance- stateless reducerstate- independent current statequery- independent query- Returns:
- view of viewType()
- Throws:
Exception- if the query is rejected
-