Class QueuePreventingScanSubmitter

java.lang.Object
uk.ac.diamond.daq.experiment.scans.mapping.QueuePreventingScanSubmitter

public class QueuePreventingScanSubmitter extends Object
The goal of this scan submitter is to prevent scans from queueing. This mechanism is useful for handling ITrigger collisions. Without it, scans would queue and quickly become out of sync with the real events that triggered their submission.

When the queue is empty, the submitter will submit a ScanBean as normal. When the queue is not empty, the behaviour depends on the level of importance assigned to a scan:

  1. submitScan(ScanBean) will throw ScanningException
  2. submitImportantScan(ScanBean) will clear the queue by aborting running invalid input: '&' submitted scans, and then submit the important scan.
  • Constructor Details

    • QueuePreventingScanSubmitter

      public QueuePreventingScanSubmitter()
  • Method Details