Class InmemoryAllocator

java.lang.Object
org.openwms.wms.shipping.spi.InmemoryAllocator
All Implemented Interfaces:
Allocator

@Profile("!DISTRIBUTED") @Component class InmemoryAllocator extends Object implements Allocator
A InmemoryAllocator does not force any remote calls and always returns fixed data.
Author:
Heiko Scherrer
  • 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 the sku in the given quantity. Always return an empty list
      Specified by:
      allocate in interface Allocator
      Parameters:
      sku - The Product's SKU
      quantity - The demanded quantity
      Returns:
      A list of available TransportUnits to allocate