@Override public void prepare(Map<String, Object> topoConf, TopologyContext context, OutputCollector collector) { List<String> registrations = (List<String>) topoConf.getOrDefault(Config.TOPOLOGY_STATE_KRYO_REGISTER, new ArrayList<>()); registrations.add(ConcurrentLinkedQueue.class.getName()); registrations.add(LinkedList.class.getName()); registrations.add(AtomicInteger.class.getName()); registrations.add(EventImpl.class.getName()); registrations.add(WindowPartition.class.getName()); registrations.add(DefaultEvictionContext.class.getName()); topoConf.put(Config.TOPOLOGY_STATE_KRYO_REGISTER, registrations); prepare(topoConf, context, collector, getWindowState(topoConf, context), getPartitionState(topoConf, context), getWindowSystemState(topoConf, context)); }