@@ -0,0 +1,1540 @@
+package org.kie.internal.builder.conf;%0A%0Aimport org.kie.api.conf.SingleValueKieBaseOption;%0A%0A/**%0A * An Enum for SessionCacheOption option.%0A *%0A * drools.sessionCache = &lt;none%7Csync%7Casync&gt;%0A *%0A * DEFAULT = none%0A *%0A * If this option is enabled caches disposed sessions and recycles them%0A * when a new session is required. In order to reuse a session it has to be%0A * resetted first, this resetting process can be synchronous or asynchronous.%0A * This option is valid only when using the phreak rule engine (default).%0A *%0A * This option is new to Drools 6.1. Before 6.1, Drools would never cache sessions.%0A */%0Apublic enum SessionCacheOption implements SingleValueKnowledgeBuilderOption, SingleValueKieBaseOption %7B%0A%0A    NONE(%22none%22),%0A    SYNC(%22sync%22),%0A    ASYNC(%22async%22);%0A%0A    /**%0A     * The property name for the process string escapes option%0A     */%0A    public static final String PROPERTY_NAME = %22drools.sessionCache%22;%0A%0A    private String value;%0A%0A    SessionCacheOption( final String value ) %7B%0A        this.value = value;%0A    %7D%0A%0A    /**%0A     * %7B@inheritDoc%7D%0A     */%0A    public String getPropertyName() %7B%0A        return PROPERTY_NAME;%0A    %7D%0A%0A    public static SessionCacheOption determineOption( String val ) %7B%0A        if (SYNC.value.equalsIgnoreCase(val)) %7B%0A            return SYNC;%0A        %7D%0A        if (ASYNC.value.equalsIgnoreCase(val)) %7B%0A            return ASYNC;%0A        %7D%0A        return NONE;%0A    %7D%0A%0A    public boolean isEnabled() %7B%0A        return this != NONE;%0A    %7D%0A%0A    public boolean isAsync() %7B%0A        return this == ASYNC;%0A    %7D%0A%7D%0A

add SessionCacheOption