Module me.ahoo.cosid.core
Package me.ahoo.cosid.lease
package me.ahoo.cosid.lease
Machine slots and their leases (05-machine-lease.md): the store primitive
SlotLeaseStore, the lease values, and the slot handles a time-based generator issues on.-
ClassDescriptionWhich step of the slot choice (05-machine-lease.md §2.1) gave the slot; the store reports it, for observation only.A slot was acquired.Builds an
AcquireResult.Acquired.Every slot below the limit is held.Holds the slot lease of a runtime (05-machine-lease.md §4.2): acquires it atLeaseKeeper.start(), renews it everyttl/3with backoff, re-acquires a lost slot and publishes each holding as aSlotBinding.Who holds a slot lease (05-machine-lease.md §2).One holding of a slot and its time window (05-machine-lease.md §4.1).The machine slot of a runtime, shared by its time-based generators (D18, 05-machine-lease.md §4.1).A lease of a time window(floor, ceiling]on a slot (05-machine-lease.md §2).Builds aSlotLease;SlotLease.Builder.build()checks the fields.Leases time windows on machine slots, the lease primitive of a store (05-machine-lease.md §2).A slot the user keeps unique (manual or StatefulSet ordinal), with a time window from a local file (05-machine-lease.md §4.4): the file holds the ceiling, written ahead and fsynced before use, so a crash followed by a clock regression cannot repeat ids.