Class VertxAsyncExec

java.lang.Object
org.apache.polaris.nosql.async.vertx.VertxAsyncExec
All Implemented Interfaces:
AutoCloseable, org.apache.polaris.nosql.async.AsyncExec

@ApplicationScoped class VertxAsyncExec extends Object implements org.apache.polaris.nosql.async.AsyncExec, AutoCloseable
CDI ApplicationScoped AsyncExec implementation that uses Vert.X timers, backed by a Java thread pool to execute blocking tasks.
  • Field Details

  • Constructor Details

    • VertxAsyncExec

      @Inject VertxAsyncExec(io.vertx.core.Vertx vertx, org.apache.polaris.nosql.async.AsyncConfiguration asyncConfiguration)
  • Method Details

    • close

      @PreDestroy public void close()
      Specified by:
      close in interface AutoCloseable
    • schedule

      public <R> org.apache.polaris.nosql.async.Cancelable<R> schedule(Callable<R> callable, Duration delay)
      Specified by:
      schedule in interface org.apache.polaris.nosql.async.AsyncExec
    • schedulePeriodic

      public org.apache.polaris.nosql.async.Cancelable<Void> schedulePeriodic(Runnable runnable, Duration initialDelay, Duration delay)
      Specified by:
      schedulePeriodic in interface org.apache.polaris.nosql.async.AsyncExec
    • toString

      public String toString()
      Overrides:
      toString in class Object