Class ParamInvokeable<T>

java.lang.Object
com.peterphi.std.threading.ParamRunnable<T>
com.peterphi.std.threading.ParamInvokeable<T>
Type Parameters:
T -

public abstract class ParamInvokeable<T> extends ParamRunnable<T>
A special ParamRunnable which runs synchronously once prepare() is called
  • Field Summary

    Fields inherited from class com.peterphi.std.threading.ParamRunnable

    prepared
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    final void
    call(T param)
    Synchronously executes this Invokeable
    final Runnable
    prepare(T param)
    Deprecated.
    if calling a ParamInvokeable directly the call(T) method should be used; this method is for maintaining full backwards compatibility with ParamRunnable

    Methods inherited from class com.peterphi.std.threading.ParamRunnable

    run

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • ParamInvokeable

      public ParamInvokeable()
  • Method Details

    • prepare

      @Deprecated public final Runnable prepare(T param)
      Deprecated.
      if calling a ParamInvokeable directly the call(T) method should be used; this method is for maintaining full backwards compatibility with ParamRunnable
      Overrides:
      prepare in class ParamRunnable<T>
      See Also:
    • call

      public final void call(T param)
      Synchronously executes this Invokeable
      Parameters:
      param -