public class AbsentLogicalPreStateProcessor extends LogicalPreStateProcessor implements AbsentPreStateProcessor
logicalType, partnerStatePreProcessorcurrentStateEventChunk, elementId, isStartState, newAndEveryStateEventList, nextProcessor, pendingStateEventList, queryName, siddhiAppContext, stateChanged, stateEventCloner, stateEventPool, stateId, stateType, streamEventCloner, streamEventPool, thisLastProcessor, thisStatePostProcessor, withinStates| Constructor and Description |
|---|
AbsentLogicalPreStateProcessor(org.wso2.siddhi.query.api.execution.query.input.state.LogicalStateElement.Type type,
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) |
| Modifier and Type | Method and Description |
|---|---|
void |
addEveryState(StateEvent stateEvent) |
void |
addState(StateEvent stateEvent) |
PreStateProcessor |
cloneProcessor(String key)
Clone a copy of processor
|
Scheduler |
getScheduler() |
boolean |
partnerCanProceed(StateEvent stateEvent) |
void |
process(ComplexEventChunk complexEventChunk)
Process the handed StreamEvent
|
ComplexEventChunk<StateEvent> |
processAndReturn(ComplexEventChunk complexEventChunk) |
void |
setPartnerStatePreProcessor(LogicalPreStateProcessor partnerStatePreProcessor) |
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.
|
resetState, setStartState, updateStatecloneProperties, currentState, getElementId, getNextProcessor, getStateId, getThisLastProcessor, getThisStatePostProcessor, init, init, isExpired, process, restoreState, setNextProcessor, setStateEventCloner, setStateEventPool, setStateId, setStreamEventCloner, setStreamEventPool, setThisLastProcessor, setThisStatePostProcessor, setToLast, stateChangedclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetNextProcessor, setNextProcessor, setToLastpublic AbsentLogicalPreStateProcessor(org.wso2.siddhi.query.api.execution.query.input.state.LogicalStateElement.Type type,
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)
public void setPartnerStatePreProcessor(LogicalPreStateProcessor partnerStatePreProcessor)
setPartnerStatePreProcessor in class LogicalPreStateProcessorpublic void updateLastArrivalTime(long timestamp)
AbsentPreStateProcessorupdateLastArrivalTime in interface AbsentPreStateProcessortimestamp - the timestamp if the eventpublic void addState(StateEvent stateEvent)
addState in interface PreStateProcessoraddState in class LogicalPreStateProcessorpublic void addEveryState(StateEvent stateEvent)
addEveryState in interface PreStateProcessoraddEveryState in class LogicalPreStateProcessorpublic 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 LogicalPreStateProcessorpublic void setScheduler(Scheduler scheduler)
setScheduler in interface SchedulingProcessorpublic Scheduler getScheduler()
getScheduler in interface SchedulingProcessorpublic PreStateProcessor cloneProcessor(String key)
LogicalPreStateProcessorcloneProcessor in interface PreStateProcessorcloneProcessor in interface ProcessorcloneProcessor in class LogicalPreStateProcessorkey - partition keypublic void start()
EternalReferencedHolderstart in interface EternalReferencedHolderpublic void stop()
EternalReferencedHolderstop in interface EternalReferencedHolderpublic boolean partnerCanProceed(StateEvent stateEvent)
Copyright © 2017 WSO2. All rights reserved.