Class APIDescriptor

    • Constructor Detail

      • APIDescriptor

        public APIDescriptor​(@Nonnull
                             APIPath aPath,
                             @Nonnull
                             IAPIExecutor aExecutor)
        Constructor
        Parameters:
        aPath - API Path to be used. May not be null.
        aExecutor - The executor to be invoked for that API. May not be null.
      • APIDescriptor

        public APIDescriptor​(@Nonnull
                             APIPath aPath,
                             @Nonnull
                             Class<? extends IAPIExecutor> aExecutorClass)
        Constructor
        Parameters:
        aPath - API Path to be used. May not be null.
        aExecutorClass - The executor class to be instantiated for every API invocation. May not be null.
      • APIDescriptor

        public APIDescriptor​(@Nonnull
                             APIPath aPath,
                             @Nonnull
                             Supplier<? extends IAPIExecutor> aExecutorFactory)
        Constructor
        Parameters:
        aPath - API Path to be used. May not be null.
        aExecutorFactory - The factory to be used to create executor instances for every API invocation. May not be null.