Class OpenApiDocumentService.Deferred<T>

java.lang.Object
io.quarkus.smallrye.openapi.runtime.OpenApiDocumentService.Deferred<T>
Enclosing class:
OpenApiDocumentService

static class OpenApiDocumentService.Deferred<T> extends Object
Deferred allows to lazily execute the loader. The loader is discarded after the first call.
In case the action happened before construction of the Deferred, an already materialized value can be provided, so that the same API can be used in deferred and non defered code paths.
  • Constructor Details

    • Deferred

      public Deferred(Supplier<T> loader)
    • Deferred

      public Deferred(T materialized)
  • Method Details

    • get

      public T get()