Package com.illumon.integrations.python
Class PythonThrowingRunnable
java.lang.Object
com.illumon.integrations.python.PythonThrowingRunnable
- All Implemented Interfaces:
FunctionalInterfaces.ThrowingRunnable<Exception>
@ScriptApi
public class PythonThrowingRunnable
extends Object
implements FunctionalInterfaces.ThrowingRunnable<Exception>
A
FunctionalInterfaces.ThrowingRunnable implementation which executes a Python callable.-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
PythonThrowingRunnable
public PythonThrowingRunnable(org.jpy.PyObject pyObjectIn) Creates a new runnable.- Parameters:
pyObjectIn- the python object providing a function - must either be callable or have an "apply" attribute which is callable.
-
-
Method Details
-
run
- Specified by:
runin interfaceFunctionalInterfaces.ThrowingRunnable<Exception>- Throws:
Exception
-