java.lang.Object
stormpot.internal.BSlot<T>
stormpot.internal.BSlotPadded<T>
- Type Parameters:
T- The concrete poolable type.
A
BSlot type with extra padding to ensure each slot is on their own CPU cache line.-
Field Summary
-
Constructor Summary
ConstructorsConstructorDescriptionBSlotPadded(BlockingQueue<BSlot<T>> live, AtomicLong poisonedSlots) Create a new BSlot instance, which will return to the given live queue when released from a claim, and update the given counter when poisoned. -
Method Summary
Methods inherited from class stormpot.internal.BSlot
claim2dead, claimTlr2live, dead2live, expire, getAgeMillis, getCreatedNanoTime, getPoolable, getStamp, live2claim, live2claimTlr, release, setStamp, toString
-
Constructor Details
-
BSlotPadded
Create a new BSlot instance, which will return to the given live queue when released from a claim, and update the given counter when poisoned.- Parameters:
live- The queue of live slots.poisonedSlots- The counter of poisoned slots.
-