Bruce Schuchardt created GEODE-1642:
---------------------------------------

             Summary: Add conveniance method isCancelInProgress to 
CancelCriterion
                 Key: GEODE-1642
                 URL: https://issues.apache.org/jira/browse/GEODE-1642
             Project: Geode
          Issue Type: Bug
          Components: general
            Reporter: Bruce Schuchardt


Geode's code has a lot of cancellation checks that look like this:

if (cache.getCancelCriterion().cancelInProgress() != null)

It seems very odd to have to perform a null check to see if the cache is 
shutting down.  CancelCriterion should have a isCancelInProgress() method that 
can be used instead of the null check.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to