public boolean isStateful() {
        return siddhiQueryContext.isStateful();
    }
Defines the behaviour of the processing, will be called after the init

@return ProcessingMode processing mode of the processor
modules/siddhi-core/src/main/java/io/siddhi/core/query/processor/stream/AbstractStreamProcessor.java