diff options
Diffstat (limited to 'policy-core/src/main/java/org/onap/policy/drools/core/PolicySessionFeatureApi.java')
-rw-r--r-- | policy-core/src/main/java/org/onap/policy/drools/core/PolicySessionFeatureApi.java | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/policy-core/src/main/java/org/onap/policy/drools/core/PolicySessionFeatureApi.java b/policy-core/src/main/java/org/onap/policy/drools/core/PolicySessionFeatureApi.java index dd9ec154..331cebe8 100644 --- a/policy-core/src/main/java/org/onap/policy/drools/core/PolicySessionFeatureApi.java +++ b/policy-core/src/main/java/org/onap/policy/drools/core/PolicySessionFeatureApi.java @@ -78,6 +78,21 @@ public interface PolicySessionFeatureApi extends OrderedService { } /** + * This method is called when 'PolicySession.insertDrools' is called. + * In a distributed host environment, features have the ability to send + * the object do a different host, and do the insert. + * + * @param policySession the 'PolicySession' object associated with the + * Drools session + * @param object the object to insert in Drools memory + * @return 'true' if this feature is handling the operation, + * and 'false' if not. + */ + public default boolean insertDrools(PolicySession session, Object object) { + return false; + } + + /** * This method is called after 'KieSession.dispose()' is called. * * @param policySession the 'PolicySession' object that wrapped the |