Package org.openwms.wms.shipping.spi
Class InmemoryAllocator
java.lang.Object
org.openwms.wms.shipping.spi.InmemoryAllocator
- All Implemented Interfaces:
InventoryAllocator
@Profile("!DISTRIBUTED")
@Component
class InmemoryAllocator
extends Object
implements InventoryAllocator
A InmemoryAllocator does not force any remote calls and always returns fixed data.
- Author:
- Heiko Scherrer
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
InmemoryAllocator
InmemoryAllocator()
-
-
Method Details
-
allocate
public List<AllocatedTransportUnit> allocate(String sku, org.openwms.core.units.api.Measurable quantity, List<String> sourceLocationGroupNames) Allocate a product with thesku
in the givenquantity
. Always return an empty list- 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
-