Uploaded image for project: 'ModeShape'
  1. ModeShape
  2. MODE-232

Connector SPI should have protocol for cancelling operations

XMLWordPrintable

    • Icon: Task Task
    • Resolution: Done
    • Icon: Blocker Blocker
    • 0.3
    • 0.2
    • Graph (2.x), Storage
    • None

      The Connector SPI needs a specific way for calls to the connector to be canceled. Currently, most of the methods throw InterruptedException, which is a painful (and confusing) way to handle it. This exception should be removed while the use of ProgressMonitor be added.

      Additionally, we may want to consider modifying the ProgressMonitor framework so that it's possible for it to threat Thread.interrupt() as a cancellation (whereby it would use that, in addition to the internal flag, to determine whether the monitor is canceled. This may require an additional method whereby the code checking "isCanceled()" acknowledges that it is canceling what it's doing (so that the ProgressMonitor can call Thread.interrupted() to clear the interrupted state).

              rhauch Randall Hauch (Inactive)
              rhauch Randall Hauch (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

                Created:
                Updated:
                Resolved: