2019-03-07 11:32:45 +01:00
|
|
|
package org.warp.jcwdb.functionalinterfaces;
|
2019-01-31 20:05:23 +01:00
|
|
|
|
|
|
|
import java.io.IOException;
|
|
|
|
|
|
|
|
@FunctionalInterface
|
|
|
|
public interface RunnableWithIO {
|
|
|
|
/**
|
|
|
|
* When an object implementing interface <code>Runnable</code> is used
|
|
|
|
* to create a thread, starting the thread causes the object's
|
|
|
|
* <code>run</code> method to be called in that separately executing
|
|
|
|
* thread.
|
|
|
|
* <p>
|
|
|
|
* The general contract of the method <code>run</code> is that it may
|
|
|
|
* take any action whatsoever.
|
|
|
|
*
|
|
|
|
* @see java.lang.Thread#run()
|
|
|
|
*/
|
|
|
|
public abstract void run() throws IOException;
|
|
|
|
}
|