Klasse AsLongAsMediator

java.lang.Object
ch.nolix.core.programcontrol.sequencer.AsLongAsMediator

public final class AsLongAsMediator extends Object
An as long as mediator is not mutable.
Version:
2017-06-01
Autor:
Silvan Wyss
  • Methodendetails

    • afterEveryMilliseconds

      public AfterEveryMediator afterEveryMilliseconds(int timeIntervalInMilliseconds)
      Parameter:
      timeIntervalInMilliseconds -
      Gibt zurück:
      a new after all mediator with the given time interval in milliseconds.
      Löst aus:
      NegativeArgumentException - if the given time interval in milliseconds is negative.
    • afterEverySecond

      public AfterEveryMediator afterEverySecond()
      Gibt zurück:
      a new AfterEveryMediator with a time interval of 1 second.
    • run

      public void run(Runnable job)
      Lets this as long as mediator run the given job.
      Parameter:
      job -
    • runInBackground

      public Future runInBackground(Runnable job)
      Lets this as long as mediator run the given job in background.
      Parameter:
      job -
      Gibt zurück:
      a new future.
      Löst aus:
      ArgumentIsNullException - if the given job is null.