public interface IlrStatelessSession extends IlrSession
IlrStatelessSession represents a stateless rule session.
A stateless session is a session where the server treats each request as an
independent transaction that is unrelated to any previous request.
See IlrSessionFactory for a code example that shows how to execute rules in a Java SE session.
| Modifier and Type | Method and Description |
|---|---|
IlrSessionResponse |
execute(IlrSessionRequest request)
Executes a ruleset based on a request and returns the execution response.
|
void |
executeAsynchronous(IlrSessionRequest request,
IlrAsyncExecutionObserver observer,
long timeout)
Executes a ruleset asynchronously.
|
IlrSessionResponse execute(IlrSessionRequest request) throws IlrSessionException
IlrSessionException - if an error occurred during ruleset execution.request - The request, this object contains execution details.void executeAsynchronous(IlrSessionRequest request, IlrAsyncExecutionObserver observer, long timeout) throws IlrSessionException
observer is notified. This
method does not block until either execution is completed or an error
is raised.IlrSessionException - if an error occurred during ruleset execution.request - The request, this object contains execution details.observer - The observer that is notified when execution is
complete.timeout - The waiting time when the observer has not been
notified of execution completion.© Copyright IBM Corp. 1987, 2017