Companion

object Companion

Properties

Link copied to clipboard

The room a pick keeps below Long.MAX_VALUE on each lifetime counter: 2^58 cost units, 16,384 charges of MAX_RESERVATION (see "The lifetime limit" in the class KDoc). An acquire, and a FairShareAllocator.schedule round, refuses rather than carry an edge's effective issuance or the root's minted supply past Long.MAX_VALUE less this. admit, extend and complete use the room, so work already running is never refused for the limit. It costs a caller one lease in 32 at MAX_RESERVATION.

Link copied to clipboard

The largest overrun complete records: 2^57 cost units, half of LIFETIME_HEADROOM. An overrun above it is recorded on no edge and minted nowhere. It is reported whole in LeaseOutcome.Done.unrecorded, the reservation is charged at the leaf as for a completion at it, and nothing else changes, the wake memory included (see "The lifetime limit" in the class KDoc).

Link copied to clipboard

The largest single reservation or extension: 2^44, about 1.8 × 10^13 cost units. A lease that runs longer is extended, or charged its overrun at complete, which this does not bound. It does not bound the service a parent hands down over its lifetime either; the ledger's Long counters do (see "The lifetime limit" in the class KDoc).

Functions

Link copied to clipboard
fun decode(bytes: ByteArray, format: BinaryFormat): RestoreResult

Read a snapshot from bytes, encoded in format from LocalHeddleSnapshot's serializer. Never throws for what the bytes hold: see RestoreResult.

fun decode(text: String, format: StringFormat): RestoreResult

Read a snapshot from text, encoded in format from LocalHeddleSnapshot's serializer. Never throws for what the text holds: see RestoreResult.

Link copied to clipboard
fun fromTopology(topology: Topology, policy: LocalPolicy, epoch: Long): LocalHeddle.Boot

An engine running topology, issuing lease ids under epoch, with no supply yet: it mints its own once reconcileCapacity is called. Its root is the topology's root. It comes back with what booting it did, as a Boot.

Link copied to clipboard
fun restore(snapshot: LocalHeddleSnapshot, policy: LocalPolicy, epoch: Long): LocalHeddle

An engine that carries on from snapshot, issuing new lease ids under epoch.