java.lang.Object
me.ahoo.cosid.lease.AcquireResult.Acquired
- All Implemented Interfaces:
AcquireResult
- Enclosing interface:
AcquireResult
A slot was acquired. Immutable; built with
builder(SlotLease, AcquireReason), the only way to create
one, so fields can be added with a default (api-freeze.md §4).-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from interface me.ahoo.cosid.lease.AcquireResult
AcquireResult.Acquired, AcquireResult.Exhausted -
Method Summary
Modifier and TypeMethodDescriptionbuilder(SlotLease lease, AcquireReason reason) A builder of an acquisition.booleanWhether another incarnation of the owner key holds a live lease in the namespace, as two runtimes started with one identity would.booleaninthashCode()lease()The lease.reason()Which step of the slot choice gave the slot (§2.1).toString()
-
Method Details
-
builder
A builder of an acquisition.- Parameters:
lease- the leasereason- which step of the slot choice gave the slot (§2.1)- Returns:
- the builder
-
lease
The lease.- Returns:
- the lease
-
reason
Which step of the slot choice gave the slot (§2.1).- Returns:
- the reason
-
duplicateOwnerKey
public boolean duplicateOwnerKey()Whether another incarnation of the owner key holds a live lease in the namespace, as two runtimes started with one identity would.- Returns:
- whether the owner key is held twice; default false
-
equals
-
hashCode
public int hashCode() -
toString
-