Interface ShopRepository
public interface ShopRepository
-
Method Summary
Modifier and TypeMethodDescriptionadjustStock(String categoryId, String itemId, int delta) Atomically adjusts stock bydelta(negative on buy, positive on sell-back) and returns the new value.
-
Method Details
-
getStock
-
setStock
-
adjustStock
Atomically adjusts stock bydelta(negative on buy, positive on sell-back) and returns the new value.
-