Interface CuratorInventoryManagerStrategy<ContainerClass,InventoryClass>
-
public interface CuratorInventoryManagerStrategy<ContainerClass,InventoryClass>Concurrency guarantees: all calls tonewContainer(ContainerClass),deadContainer(ContainerClass),updateContainer(ContainerClass, ContainerClass)andinventoryInitialized()(all done withinCuratorInventoryManager.pathChildrenCacheExecutor) are linearizable. Calls toaddInventory(ContainerClass, java.lang.String, InventoryClass),updateInventory(ContainerClass, java.lang.String, InventoryClass)andremoveInventory(ContainerClass, java.lang.String)are linearizable for the each container in independence.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description ContainerClassaddInventory(ContainerClass container, String inventoryKey, InventoryClass inventory)voiddeadContainer(ContainerClass deadContainer)ContainerClassdeserializeContainer(byte[] bytes)InventoryClassdeserializeInventory(byte[] bytes)voidinventoryInitialized()voidnewContainer(ContainerClass newContainer)ContainerClassremoveInventory(ContainerClass container, String inventoryKey)ContainerClassupdateContainer(ContainerClass oldContainer, ContainerClass newContainer)ContainerClassupdateInventory(ContainerClass container, String inventoryKey, InventoryClass inventory)
-
-
-
Method Detail
-
deserializeContainer
ContainerClass deserializeContainer(byte[] bytes)
-
deserializeInventory
InventoryClass deserializeInventory(byte[] bytes)
-
newContainer
void newContainer(ContainerClass newContainer)
-
deadContainer
void deadContainer(ContainerClass deadContainer)
-
updateContainer
ContainerClass updateContainer(ContainerClass oldContainer, ContainerClass newContainer)
-
addInventory
ContainerClass addInventory(ContainerClass container, String inventoryKey, InventoryClass inventory)
-
updateInventory
ContainerClass updateInventory(ContainerClass container, String inventoryKey, InventoryClass inventory)
-
removeInventory
ContainerClass removeInventory(ContainerClass container, String inventoryKey)
-
inventoryInitialized
void inventoryInitialized()
-
-