public class JepInstance extends Object implements Runnable
AbstractJepEvaluation).| Constructor and Description |
|---|
JepInstance()
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
void |
run()
Runnable that will run on the instance thread.
|
void |
start()
Starts the thread and consequently the Jep instance inside it.
|
void |
stop()
Sets running to false signalling the instance is no longer ready to receive evaluations.
|
<T> AbstractJepEvaluation<T> |
submitEvaluation(JepFunction<T> evaluationFunction)
Submits an evaluation to the evaluation queue.
|
public void start()
public void stop()
public void run()
AbstractJepEvaluation).public <T> AbstractJepEvaluation<T> submitEvaluation(JepFunction<T> evaluationFunction)
AbstractJepEvaluation which is a CompletableFuture.T - Type of the result of the evaluation.evaluationFunction - JepFunction with evaluation to be done by the Jep instance.AbstractJepEvaluation evaluation object that can be used to retrieve the result of the evaluation.Copyright © 2018 Feedzai. All rights reserved.