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

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

    XMLWordPrintable

Details

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

    Description

      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.

      Attachments

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: