java.lang.Object
me.ahoo.cosid.internal.ObservedStores
The stores as the runtime hands them to its generators and lease keeper: every call that fails with a
StoreTimeoutException (itself or as a cause) is reported to GeneratorListener.onStoreTimeout(java.lang.String, java.lang.String) with the
store's name and the operation, then rethrown unchanged. Nothing else is added to a call.-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionstatic RangeStoreranges(String name, RangeStore store, GeneratorListener listener) The range storename, reporting its timeouts.static SlotLeaseStoreslots(String name, SlotLeaseStore store, GeneratorListener listener) The slot lease storename, reporting its timeouts.
-
Field Details
-
RESERVE
- See Also:
-
SEAL
- See Also:
-
ACQUIRE
- See Also:
-
RENEW
- See Also:
-
RELEASE
- See Also:
-
-
Method Details
-
ranges
The range storename, reporting its timeouts.- Parameters:
name- the store namestore- the range storelistener- the listener- Returns:
- the observed store
-
slots
The slot lease storename, reporting its timeouts.- Parameters:
name- the store namestore- the slot lease storelistener- the listener- Returns:
- the observed store
-