| Package | Description |
|---|---|
| org.evrete | |
| org.evrete.api |
| Modifier and Type | Method and Description |
|---|---|
StatefulSession |
KnowledgeService.newSession()
Deprecated.
|
StatefulSession |
KnowledgeService.newStatefulSession()
This method is a shorthand for
newKnowledge().newStatefulSession() which
returns an empty session instance. |
| Modifier and Type | Method and Description |
|---|---|
default StatefulSession |
Knowledge.createSession()
Deprecated.
|
StatefulSession |
StatefulSession.delete(FactHandle handle)
Deletes a fact from working memory.
|
StatefulSession |
StatefulSession.fire()
Fire all rules.
|
StatefulSession |
StatefulSession.forEachFact(BiConsumer<FactHandle,Object> consumer)
A full-scan memory inspection method.
|
default StatefulSession |
StatefulSession.forEachFact(BiPredicate<FactHandle,Object> filter,
BiConsumer<FactHandle,Object> consumer) |
default <T> StatefulSession |
StatefulSession.forEachFact(Class<T> type,
Consumer<T> consumer)
A memory inspection method that accepts fact type as an argument.
|
default <T> StatefulSession |
StatefulSession.forEachFact(Class<T> type,
Predicate<T> filter,
Consumer<T> consumer)
A filtering version of the
forEachFact(Class, Consumer) method. |
default StatefulSession |
StatefulSession.forEachFact(Consumer<Object> consumer) |
<T> StatefulSession |
StatefulSession.forEachFact(String type,
Consumer<T> consumer)
A memory inspection method that accepts fact type as an argument.
|
default <T> StatefulSession |
StatefulSession.forEachFact(String type,
Predicate<T> filter,
Consumer<T> consumer)
A filtering version of the
forEachFact(String, Consumer) method. |
default StatefulSession |
StatefulSession.insertAndFire(Collection<?> objects) |
default StatefulSession |
StatefulSession.insertAndFire(Object... objects) |
StatefulSession |
Knowledge.newStatefulSession() |
default StatefulSession |
Knowledge.newStatefulSession(ActivationMode mode) |
StatefulSession |
StatefulSession.update(FactHandle handle,
Object newValue)
Updates a fact that already exists in the working memory
|
| Modifier and Type | Method and Description |
|---|---|
default Future<StatefulSession> |
StatefulSession.fireAsync()
Same as
fireAsync(Object), with the Future's get method will returning
the session itself. |
Copyright © 2021. All rights reserved.