Concurrency-TS Documentation
    Preparing search index...

    Interface ConcurrencyFactory

    Responsible for creating new instances of Concurrency

    interface ConcurrencyFactory {
        createConcurrency(config?: ConcurrencyConfig): Concurrency;
        install(repository: Repository, config?: ConcurrencyConfig): void;
    }
    Index

    Methods

    • Create a new instance of Concurrency

      Note: caller is responsible for calling Open.open and calling the AutoClose.close when done with the instance.

      Parameters

      Returns Concurrency

      the new Concurrency instance

      IllegalArgumentException if config is null or when configuration is invalid

    • Install all the requirements and promises to the given Contracts Repository. Include Concurrency#CONTRACT which will provide a unique

      Parameters

      • repository: Repository

        the repository to add requirements and promises to

      • Optionalconfig: ConcurrencyConfig

        the Concurrency config

      Returns void

      IllegalArgumentException if config is null, config is invalid, or repository is null