@codesoul-co/hypha-adapters-local / runtime-capacity-semaphore
- Package index:
@codesoul-co/hypha-adapters-local - Source:
packages/adapters-local/src/runtime-capacity-semaphore.ts - Exports: 2
Using this module
Use the Runtime capacity semaphore module for executing runtime behavior at this boundary. It exports 1 class, 1 interface.
Import from the package entrypoint
ts
import {
SQLiteRuntimeCapacitySemaphore,
} from '@codesoul-co/hypha-adapters-local';
import type {
SQLiteRuntimeCapacitySemaphoreOptions,
} from '@codesoul-co/hypha-adapters-local';Usage patterns
- Use the 1 type/interface export as static contracts in application code, adapters, or tests. Import them with
import type; they do not exist at runtime. - The module exposes 1 class as constructable runtime implementations. Each symbol entry lists its constructor and public methods.
Public exports
| Symbol | Kind | Signature | Description |
|---|---|---|---|
SQLiteRuntimeCapacitySemaphore | class | new SQLiteRuntimeCapacitySemaphore(options: SQLiteRuntimeCapacitySemaphoreOptions): SQLiteRuntimeCapacitySemaphore | SQLite Runtime Capacity Semaphore class with 7 public constructor or member entries; its exact declarations are listed below. |
SQLiteRuntimeCapacitySemaphoreOptions | interface | interface SQLiteRuntimeCapacitySemaphoreOptions | SQLite Runtime Capacity Semaphore Options interface with 2 public fields or methods. |
SQLiteRuntimeCapacitySemaphore
SQLite Runtime Capacity Semaphore class with 7 public constructor or member entries; its exact declarations are listed below.
- Kind: class
- Import:
import { SQLiteRuntimeCapacitySemaphore } from '@codesoul-co/hypha-adapters-local'; - Source module:
runtime-capacity-semaphore
Declaration
text
export declare class SQLiteRuntimeCapacitySemaphore implements RuntimeCapacitySemaphore {
constructor(options: SQLiteRuntimeCapacitySemaphoreOptions);
acquire(request: RuntimeCapacityAcquireRequest): Promise<RuntimeCapacityLease | null>;
renew(request: RuntimeCapacityRenewRequest): Promise<RuntimeCapacityLease>;
release(request: RuntimeCapacityReleaseRequest): Promise<void>;
assertCurrent(request: RuntimeCapacityAssertionRequest): Promise<RuntimeCapacityLease>;
usage(request: RuntimeCapacityUsageRequest): Promise<RuntimeCapacityUsage>;
close(): void;
}Public members
| Member | Kind | Signature | Description |
|---|---|---|---|
acquire | method | acquire(request: RuntimeCapacityAcquireRequest): Promise<RuntimeCapacityLease | null> | Public method; parameters and return type are shown in the signature. |
assertCurrent | method | assertCurrent(request: RuntimeCapacityAssertionRequest): Promise<RuntimeCapacityLease> | Public method; parameters and return type are shown in the signature. |
close | method | close(): void | Public method; parameters and return type are shown in the signature. |
constructor | constructor | (options: SQLiteRuntimeCapacitySemaphoreOptions): SQLiteRuntimeCapacitySemaphore | Creates an instance of this class. |
release | method | release(request: RuntimeCapacityReleaseRequest): Promise<void> | Public method; parameters and return type are shown in the signature. |
renew | method | renew(request: RuntimeCapacityRenewRequest): Promise<RuntimeCapacityLease> | Public method; parameters and return type are shown in the signature. |
usage | method | usage(request: RuntimeCapacityUsageRequest): Promise<RuntimeCapacityUsage> | Public method; parameters and return type are shown in the signature. |
SQLiteRuntimeCapacitySemaphoreOptions
SQLite Runtime Capacity Semaphore Options interface with 2 public fields or methods.
- Kind: interface
- Import:
import type { SQLiteRuntimeCapacitySemaphoreOptions } from '@codesoul-co/hypha-adapters-local'; - Source module:
runtime-capacity-semaphore
Declaration
text
export interface SQLiteRuntimeCapacitySemaphoreOptions {
filename: string;
policy: RuntimeCapacityPolicy;
}Contract members
| Member | Kind | Signature | Description |
|---|---|---|---|
filename | property | filename: string | Public property; its type, readonly modifier and optionality are shown in the signature. |
policy | property | policy: RuntimeCapacityPolicy | Public property; its type, readonly modifier and optionality are shown in the signature. |
