Package jmri.util
Interface ThreadingUtil.ThreadActionWithJmriException
-
- Enclosing class:
- ThreadingUtil
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
@FunctionalInterface public static interface ThreadingUtil.ThreadActionWithJmriException
Interface for use in ThreadingUtil's lambda interfaces
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidrun()When an object implementing interfaceThreadActionWithJmriExceptionis used to create a thread, starting the thread causes the object'srunmethod to be called in that separately executing thread.
-
-
-
Method Detail
-
run
void run() throws JmriException, java.lang.RuntimeException
When an object implementing interfaceThreadActionWithJmriExceptionis used to create a thread, starting the thread causes the object'srunmethod to be called in that separately executing thread.The general contract of the method
runis that it may take any action whatsoever.- Throws:
JmriException- when an exception occursjava.lang.RuntimeException- when an exception occurs- See Also:
Thread.run()
-
-