Class Process

java.lang.Object
com.mrivanplays.process.Process

public abstract class Process extends Object
Represents a process that's going to be run.
Since:
0.0.1
Author:
Ivan Pekov
  • Constructor Details

  • Method Details

    • fromRunnable

      public static Process fromRunnable(Runnable runnable)
      Creates a new Process from a Runnable
      Parameters:
      runnable - input runnable
      Returns:
      process
    • run

      protected abstract void run() throws Throwable
      Main logic for running this process.
      Throws:
      Throwable - if anything goes wrong, the implementation can throw any exception.