Class DefaultPackageExportQueueDelegate

java.lang.Object
com.ptc.windchill.sync.wpsync.DefaultPackageExportQueueDelegate
All Implemented Interfaces:
PackageExportQueueDelegate
Direct Known Subclasses:
FBRPackageExportQueueDelegate

public class DefaultPackageExportQueueDelegate extends Object implements PackageExportQueueDelegate
Default implementation of PackageExportQueueDelegate for managing multiple export queues for package export background jobs. This delegate provides the following default implementation:

createQueues to create the processing queues as specified by the property com.ptc.windchill.wp.delivery.export.numExportQueues to be utilized for processing package export tasks in background.

getQueueName to return the least busy queue to place the package export task on for the Delivery Record instance, and if multiple queues are found to be equally selectable (e.g. all queues are empty), the lowest numbered queue will be selected (e.g. "PackageExportQueue1" will be selected before "PackageExportQueue2").

Supported API: true
Extendable: true

  • Method Details

    • getQueueName

      public String getQueueName() throws WTException
      Returns the least busy queue to place the package export task on for the Delivery Record instance, and if multiple queues are found to be equally selectable (e.g. all queues are empty), the lowest numbered queue will be selected (e.g. "PackageExportQueue1" will be selected before "PackageExportQueue2"). Supported API: true
      Specified by:
      getQueueName in interface PackageExportQueueDelegate
      Returns:
      name of queue which would be preferred for assigning export package task to.
      Throws:
      WTException