Liking cljdoc? Tell your friends :D

hive-weave.budget.schema

Malli value objects for hive-weave.budget: gate options, stats, the Result variants every admission path can yield, and the byte-fork-join workload shapes. The IBudgetGate predicate lives in hive-weave.budget (it needs the protocol).

Malli value objects for hive-weave.budget: gate options, stats, the
Result variants every admission path can yield, and the byte-fork-join
workload shapes. The IBudgetGate predicate lives in hive-weave.budget
(it needs the protocol).
raw docstring

AcquireResultclj/s

-acquire: {:ok granted-cost} or an admission error.

-acquire: {:ok granted-cost} or an admission error.
sourceraw docstring

BudgetErrorclj/s

Any failed with-budget Result.

Any failed with-budget Result.
sourceraw docstring

BudgetResultclj/s

with-budget: {:ok thunk-value} or a BudgetError.

with-budget: {:ok thunk-value} or a BudgetError.
sourceraw docstring

Costclj/s

Units requested from a gate. Coerced with int; non-positive or over-capacity costs are rejected as a value, not thrown.

Units requested from a gate. Coerced with `int`; non-positive or
over-capacity costs are rejected as a value, not thrown.
sourceraw docstring

Deadlineclj/s

Absolute epoch-millis deadline.

Absolute epoch-millis deadline.
sourceraw docstring

ExecutionFailedErrorclj/s

source

GateOptsclj/s

Options for byte-budget-gate. :capacity is required.

Options for byte-budget-gate. :capacity is required.
sourceraw docstring

GateStatsclj/s

Snapshot returned by -stats / byte-gate-stats. The admission totals are nil for hive-weave.gate.Gate, which does not count them.

Snapshot returned by -stats / byte-gate-stats. The admission totals are
nil for hive-weave.gate.Gate, which does not count them.
sourceraw docstring

Outcomeclj/s

[key value-or-fallback] — the collected form of one Submission.

[key value-or-fallback] — the collected form of one Submission.
sourceraw docstring

OutcomeSourceclj/s

What resolve-outcome reads off a Workload: only :key and :fallback.

What resolve-outcome reads off a Workload: only :key and :fallback.
sourceraw docstring

OverCapacityErrorclj/s

Open: hive-weave.gate.Gate adds a :hint.

Open: hive-weave.gate.Gate adds a :hint.
sourceraw docstring

Submissionclj/s

A Workload in flight on a future.

A Workload in flight on a future.
sourceraw docstring

Taskclj/s

A byte-fork-join task: [k thunk cost] or [k thunk cost fallback].

A byte-fork-join task: [k thunk cost] or [k thunk cost fallback].
sourceraw docstring

TimeoutErrorclj/s

ByteBudgetGate reports :inflight, hive-weave.gate.Gate :available.

ByteBudgetGate reports :inflight, hive-weave.gate.Gate :available.
sourceraw docstring

TimeoutMsclj/s

Milliseconds to wait for admission; nil defers to the gate's default.

Milliseconds to wait for admission; nil defers to the gate's default.
sourceraw docstring

Workloadclj/s

A parsed Task (a Workload record).

A parsed Task (a Workload record).
sourceraw docstring

cljdoc builds & hosts documentation for Clojure/Script libraries

Keyboard shortcuts
Ctrl+kJump to recent docs
←Move to previous article
→Move to next article
Ctrl+/Jump to the search field
× close