Object -
streams
:
CompoundPatternProcessor
Processor to perform compound stream operations.
Constructor
__init
(int withinTimeMillis)
- withinTimeMillis int
Methods
Processes the StreamEvent
.
Set the StateMachine
to the procesor and it's descendants.
Validates the processor and its configs.
Promotes the StreamEvent
to the previous processor.
Evicts the StreamEvent
from current state branch.
Removes a given StreamEvent
from the StateMachine
.
Emits given StreamEvent
as a fulfilled event.
Returns fulfilled state events and flush returned states from the state machine.
Sets a link to the previous AbstractOperatorProcessor
.
Sets a link to the descendant AbstractOperatorProcessor
.
Returns the alias of the current processor.
Fields
- processor AbstractPatternProcessor?
-
descendant
AbstractPatternProcessor
processor
- fulfilledEvents StreamEvent[]
-
fulfilled states
- withinTimeMillis int
-
time from initial state to current state should be within this time
Processes the StreamEvent
.
Parameters
- event StreamEvent
-
event to process
- processorAlias string
-
alias for the calling processor, for identification purposes (lhs, rhs).
-
Return Type
([boolean, boolean]) a tuple indicating, whether the event is promoted and whether to continue to the next processor.
Set the StateMachine
to the procesor and it's descendants.
Parameters
- stateMachine StateMachine
-
StateMachine
instance
Promotes the StreamEvent
to the previous processor.
Parameters
- stateEvent StreamEvent
-
event to promote
- processorAlias string
-
alias for the calling processor, for identification purposes (lhs, rhs).
Evicts the StreamEvent
from current state branch.
Parameters
- stateEvent StreamEvent
-
event to promote
- processorAlias string
-
alias for the calling processor, for identification purposes (lhs, rhs).
Removes a given StreamEvent
from the StateMachine
.
Parameters
- streamEvent StreamEvent
-
event to be removed
Returns fulfilled state events and flush returned states from the state machine.
-
Return Type
(StreamEvent[]) an array of
StreamEvent
s.
Sets a link to the previous AbstractOperatorProcessor
.
Parameters
- processor AbstractOperatorProcessor
-
previous processor
Sets a link to the descendant AbstractOperatorProcessor
.
Parameters
- processor AbstractPatternProcessor
-
descendant processor