public class ArtificialValueStateBuilder<IN,STATE> extends ArtificialStateBuilder<IN>
ArtificialStateBuilder
for user ValueState
s.Constructor and Description |
---|
ArtificialValueStateBuilder(String stateName,
JoinFunction<IN,STATE,STATE> stateValueGenerator,
ValueStateDescriptor<STATE> valueStateDescriptor) |
Modifier and Type | Method and Description |
---|---|
void |
artificialStateForElement(IN event)
Manipulate the state for an input element.
|
void |
initialize(FunctionInitializationContext initializationContext)
Registers the state.
|
getStateName
public ArtificialValueStateBuilder(String stateName, JoinFunction<IN,STATE,STATE> stateValueGenerator, ValueStateDescriptor<STATE> valueStateDescriptor)
public void artificialStateForElement(IN event) throws Exception
ArtificialStateBuilder
artificialStateForElement
in class ArtificialStateBuilder<IN>
event
- the current input element.Exception
public void initialize(FunctionInitializationContext initializationContext)
ArtificialStateBuilder
initialize
in class ArtificialStateBuilder<IN>
initializationContext
- the state initialization context, provided by the user function.Copyright © 2014–2024 The Apache Software Foundation. All rights reserved.