public interface CuratorInventoryManagerStrategy<ContainerClass,InventoryClass>
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.| Modifier and Type | Method and Description |
|---|---|
ContainerClass |
addInventory(ContainerClass container,
String inventoryKey,
InventoryClass inventory) |
void |
deadContainer(ContainerClass deadContainer) |
ContainerClass |
deserializeContainer(byte[] bytes) |
InventoryClass |
deserializeInventory(byte[] bytes) |
void |
inventoryInitialized() |
void |
newContainer(ContainerClass newContainer) |
ContainerClass |
removeInventory(ContainerClass container,
String inventoryKey) |
ContainerClass |
updateContainer(ContainerClass oldContainer,
ContainerClass newContainer) |
ContainerClass |
updateInventory(ContainerClass container,
String inventoryKey,
InventoryClass inventory) |
ContainerClass deserializeContainer(byte[] bytes)
InventoryClass deserializeInventory(byte[] bytes)
void newContainer(ContainerClass newContainer)
void deadContainer(ContainerClass deadContainer)
ContainerClass updateContainer(ContainerClass oldContainer, ContainerClass newContainer)
ContainerClass addInventory(ContainerClass container, String inventoryKey, InventoryClass inventory)
ContainerClass updateInventory(ContainerClass container, String inventoryKey, InventoryClass inventory)
ContainerClass removeInventory(ContainerClass container, String inventoryKey)
void inventoryInitialized()
Copyright © 2011–2021 The Apache Software Foundation. All rights reserved.