Package org.openwms.wms.shipping.spi
Class FeignAllocator
java.lang.Object
org.openwms.wms.shipping.spi.FeignAllocator
- All Implemented Interfaces:
InventoryAllocator
@Profile("DISTRIBUTED")
@Component
class FeignAllocator
extends Object
implements InventoryAllocator
A FeignAllocator uses an external API to search for available products.
- Author:
- Heiko Scherrer
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
allocatorApi
-
-
Constructor Details
-
FeignAllocator
FeignAllocator(AllocatorApi allocatorApi)
-
-
Method Details
-
allocate
@Measured public List<AllocatedTransportUnit> allocate(String sku, org.openwms.core.units.api.Measurable quantity, List<String> sourceLocationGroupNames) Allocate a product with thesku
in the givenquantity
.- Specified by:
allocate
in interfaceInventoryAllocator
- Parameters:
sku
- The Product's SKUquantity
- The demanded quantitysourceLocationGroupNames
- A list of LocationGroup names where to allocate inventory in- Returns:
- A list of available TransportUnits to allocate
-