Interface StockReservationService
- All Known Implementing Classes:
ProductCommandService
public interface StockReservationService
Public application service contract used by other modules to reserve stock.
Consumers do not receive repository access, preserving catalog ownership of
product state.
-
Method Summary
Modifier and TypeMethodDescriptionvoidreserveStock(Long productId, int quantity) Reserve catalog stock for a product.
-
Method Details
-
reserveStock
Reserve catalog stock for a product.- Parameters:
productId- catalog product idquantity- positive quantity to reserve
-