Class ContextHolder

    • Field Detail

      • vertx

        protected final io.vertx.core.Vertx vertx
      • context

        protected volatile io.vertx.core.Context context
    • Constructor Detail

      • ContextHolder

        public ContextHolder​(io.vertx.core.Vertx vertx,
                             int defaultTimeout)
    • Method Detail

      • capture

        public void capture​(io.vertx.core.Context context)
      • getContext

        public io.vertx.core.Context getContext()
      • runOnContext

        public void runOnContext​(Runnable runnable)
      • runOnContextAndAwait

        public <T> T runOnContextAndAwait​(Callable<T> action)