Class Poller

java.lang.Object
xyz.lazertechbuilds.poller.Poller

public class Poller
extends Object
  • Constructor Details

    • Poller

      public Poller​(Method method, long time, TimeUnit timeUnit)
      Parameters:
      method - The static methods that needs executed
      time - The time in minutes
      timeUnit - The time units
  • Method Details

    • poll

      public void poll()
      This will execute the method if the time has passed.