Interface CuratorInventoryManagerStrategy<ContainerClass,InventoryClass>
public interface CuratorInventoryManagerStrategy<ContainerClass,InventoryClass>
Concurrency guarantees: all calls to
newContainer(ContainerClass), deadContainer(ContainerClass), updateContainer(ContainerClass, ContainerClass) and
inventoryInitialized() (all done within CuratorInventoryManager.pathChildrenCacheExecutor) are
linearizable. Calls to addInventory(ContainerClass, java.lang.String, InventoryClass), updateInventory(ContainerClass, java.lang.String, InventoryClass) and removeInventory(ContainerClass, java.lang.String) are linearizable
for the each container in independence.-
Method Summary
Modifier and TypeMethodDescriptionaddInventory(ContainerClass container, String inventoryKey, InventoryClass inventory) voiddeadContainer(ContainerClass deadContainer) deserializeContainer(byte[] bytes) deserializeInventory(byte[] bytes) voidvoidnewContainer(ContainerClass newContainer) removeInventory(ContainerClass container, String inventoryKey) updateContainer(ContainerClass oldContainer, ContainerClass newContainer) updateInventory(ContainerClass container, String inventoryKey, InventoryClass inventory)
-
Method Details
-
deserializeContainer
-
deserializeInventory
-
newContainer
-
deadContainer
-
updateContainer
-
addInventory
ContainerClass addInventory(ContainerClass container, String inventoryKey, InventoryClass inventory) -
updateInventory
ContainerClass updateInventory(ContainerClass container, String inventoryKey, InventoryClass inventory) -
removeInventory
-
inventoryInitialized
void inventoryInitialized()
-