Uploaded image for project: 'Infinispan'
  1. Infinispan
  2. ISPN-1430

AdvancedCache.addInterceptor() methods don't provide success/failure feedback

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Done
    • Icon: Major Major
    • 5.1.0.BETA5, 5.1.0.FINAL
    • 5.0.0.FINAL
    • Core
    • None

      Problem:
      cache.getAdvancedCache().addInterceptorAfter(new ErrorInducingInterceptor(), NonTransactionalLockingInterceptor.class);
      if NonTransactionalLockingInterceptor doesn't exist in the chain then the method return silently without informing the user that it didn't succeed. This is not API friendly.

      Suggested solution: throw an exception to inform the user that his attempt is not correct.

              manik_jira Manik Surtani (Inactive)
              mircea.markus Mircea Markus (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated:
                Resolved: