⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 workingmemorytemplate.java

📁 drools 一个开放源码的规则引擎
💻 JAVA
字号:
package org.drools;


/**
 * Interface invoke WorkingMemory methods within a callback. The concrete implementations
 * of this interface can provide various services related to the WorkingMemory instance
 * (eg, synchronization).
 */
public interface WorkingMemoryTemplate {

    /**
     * Callback interface for invoking WorkingMemory methods within a synchronized block.
     */
    public interface Callback {
        /**
         * Gets called by <code>WorkingMemorySynchronizedTemplate.execute</code> with a
         * WorkingMemory instance protected by a synchronized block.
         * @param workingMemory
         * @return Any object or null.
         */
        Object doInWorkingMemory(final WorkingMemory workingMemory) throws DroolsException;
    }

    /**
     * Invokes <code>Callback.doInWorkingMemory</code>. Any thrown <code>DroolsException<code> is
     * softened to <code>DroolsRuntimeException</code>.
     * @param callback
     * @return Any object or null.
     */
    Object execute(Callback callback);

}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -