@Override public long maxEventsInMemory() { return maxEventsInMemory > 0 ? maxEventsInMemory : IStatefulWindowedBolt.super.maxEventsInMemory(); }
void prepare(Map<String, Object> topoConf, TopologyContext context, OutputCollector collector, KeyValueState<Long, WindowPartition<Tuple>> windowState, KeyValueState<String, Deque<Long>> partitionState, KeyValueState<String, Optional<?>> windowSystemState) { outputCollector = collector; this.windowSystemState = windowSystemState; state = new WindowState<>(windowState, partitionState, windowSystemState, this::getState, statefulWindowedBolt.maxEventsInMemory()); doPrepare(topoConf, context, new NoAckOutputCollector(collector), state, true); restoreWindowSystemState(); }