Class InmemoryTransportUnitAllocator

java.lang.Object
org.openwms.wms.shipping.spi.InmemoryTransportUnitAllocator
All Implemented Interfaces:
TransportUnitAllocator

@Profile("!DISTRIBUTED") @Component class InmemoryTransportUnitAllocator extends Object implements TransportUnitAllocator
A InmemoryTransportUnitAllocator does not force any remote calls and always returns fixed data.
Author:
Heiko Scherrer
  • Constructor Details

    • InmemoryTransportUnitAllocator

      InmemoryTransportUnitAllocator()
  • Method Details

    • allocate

      public List<AllocatedTransportUnit> allocate(List<org.openwms.core.lang.Triple<String,Object,Class<?>>> attributes, List<String> sourceLocationGroupNames)
      Allocate a product with the sku in the given quantity. Always return an empty list
      Specified by:
      allocate in interface TransportUnitAllocator
      Parameters:
      attributes - The search attributes
      sourceLocationGroupNames - A list of LocationGroup names where to allocate TransportUnits in
      Returns:
      A list of available TransportUnits to allocate