private void collectDeprecateWarnings() {
        Map<String, Class> deprecatedExtensions = siddhiAppContext.getSiddhiContext().getDeprecatedSiddhiExtensions();
        List<AbstractDefinition> extensionsInUse = new ArrayList<>();
        extensionsInUse.addAll(streamDefinitionMap.values());
        extensionsInUse.addAll(tableDefinitionMap.values());
        extensionsInUse.addAll(windowDefinitionMap.values());
        extensionsInUse.addAll(aggregationDefinitionMap.values());
        for (AbstractDefinition extDefinition : extensionsInUse) {
            for (Annotation annotation : extDefinition.getAnnotations()) {
                String type = annotation.getElement(SiddhiConstants.ANNOTATION_ELEMENT_TYPE);
                if (annotation.getName().equalsIgnoreCase(SiddhiConstants.ANNOTATION_SOURCE)) {
                    type = "source:" + type;
                }
                if (annotation.getName().equalsIgnoreCase(SiddhiConstants.ANNOTATION_SINK)) {
                    type = "sink:" + type;
                }
                if (annotation.getName().equalsIgnoreCase(SiddhiConstants.ANNOTATION_STORE)) {
                    type = "store:" + type;
                }
                if (type != null && deprecatedExtensions.containsKey(type)) {
                    Class ext = deprecatedExtensions.get(type);
                    Extension extAnnotation = (Extension) ext.getAnnotation(Extension.class);
                    String warning = extAnnotation.deprecationNotice().isEmpty()
                            ? type + " is being deprecated."
                            : extAnnotation.deprecationNotice();
                    warnings.add(warning);
                    log.warn(warning);
                }
            }
        }
    }
To enable and disable Siddhi App playback mode on runtime along with optional parameters.

@param playBackEnabled         whether playback is enabled or not
@param idleTime
@param incrementInMilliseconds
modules/siddhi-core/src/main/java/io/siddhi/core/SiddhiAppRuntimeImpl.java