Class ParamRunnable<T>

java.lang.Object
com.peterphi.std.threading.ParamRunnable<T>
Record Components:
T - the parameter type
Direct Known Subclasses:
ParamInvokeable

public abstract class ParamRunnable<T> extends Object
A class encapsulating the Runnable idea, mixed with Callable - instead of having a return type, this takes an argument to be passed to the run method
  • Field Details

    • prepared

      protected boolean prepared
  • Constructor Details

    • ParamRunnable

      public ParamRunnable()
  • Method Details

    • prepare

      public Runnable prepare(T param)
    • run

      public abstract void run(T t)