public class AbsentStreamPreStateProcessor extends StreamPreStateProcessor implements AbsentPreStateProcessor
currentStateEventChunk, elementId, isStartState, newAndEveryStateEventList, nextProcessor, pendingStateEventList, queryName, siddhiAppContext, stateChanged, stateEventCloner, stateEventPool, stateId, stateType, streamEventCloner, streamEventPool, thisLastProcessor, thisStatePostProcessor, withinStates| Constructor and Description |
|---|
AbsentStreamPreStateProcessor(org.wso2.siddhi.query.api.execution.query.input.stream.StateInputStream.Type stateType,
List<Map.Entry<Long,Set<Integer>>> withinStates,
org.wso2.siddhi.query.api.expression.constant.TimeConstant waitingTime)
Construct an AbsentStreamPreStateProcessor object.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addState(StateEvent stateEvent) |
PreStateProcessor |
cloneProcessor(String key)
Clone a copy of processor
|
Scheduler |
getScheduler() |
void |
process(ComplexEventChunk complexEventChunk)
Process the handed StreamEvent
|
ComplexEventChunk<StateEvent> |
processAndReturn(ComplexEventChunk complexEventChunk) |
void |
resetState() |
void |
setScheduler(Scheduler scheduler) |
void |
start()
This will be called only once and this can be used to acquire
required resources for the processing element.
|
void |
stop()
This will be called only once and this can be used to release
the acquired resources for processing.
|
void |
updateLastArrivalTime(long timestamp)
Update the timestamp of the event arrived to this processor and met the filter conditions.
|
addEveryState, cloneProperties, currentState, getElementId, getNextProcessor, getStateId, getThisLastProcessor, getThisStatePostProcessor, init, init, isExpired, process, restoreState, setNextProcessor, setStartState, setStateEventCloner, setStateEventPool, setStateId, setStreamEventCloner, setStreamEventPool, setThisLastProcessor, setThisStatePostProcessor, setToLast, stateChanged, updateStateclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetNextProcessor, setNextProcessor, setToLastpublic AbsentStreamPreStateProcessor(org.wso2.siddhi.query.api.execution.query.input.stream.StateInputStream.Type stateType,
List<Map.Entry<Long,Set<Integer>>> withinStates,
org.wso2.siddhi.query.api.expression.constant.TimeConstant waitingTime)
stateType - PATTERN or SEQUENCEwithinStates - the time defined by 'within' keywordwaitingTime - the waiting time defined by 'for' keywordpublic void updateLastArrivalTime(long timestamp)
AbsentPreStateProcessorupdateLastArrivalTime in interface AbsentPreStateProcessortimestamp - the timestamp if the eventpublic void addState(StateEvent stateEvent)
addState in interface PreStateProcessoraddState in class StreamPreStateProcessorpublic void resetState()
resetState in interface PreStateProcessorresetState in class StreamPreStateProcessorpublic void process(ComplexEventChunk complexEventChunk)
StreamPreStateProcessorprocess in interface Processorprocess in class StreamPreStateProcessorcomplexEventChunk - event chunk to be processedpublic ComplexEventChunk<StateEvent> processAndReturn(ComplexEventChunk complexEventChunk)
processAndReturn in interface PreStateProcessorprocessAndReturn in class StreamPreStateProcessorpublic void setScheduler(Scheduler scheduler)
setScheduler in interface SchedulingProcessorpublic Scheduler getScheduler()
getScheduler in interface SchedulingProcessorpublic PreStateProcessor cloneProcessor(String key)
StreamPreStateProcessorcloneProcessor in interface PreStateProcessorcloneProcessor in interface ProcessorcloneProcessor in class StreamPreStateProcessorkey - partition keypublic void start()
EternalReferencedHolderstart in interface EternalReferencedHolderpublic void stop()
EternalReferencedHolderstop in interface EternalReferencedHolderCopyright © 2018 WSO2. All rights reserved.