[infinispan-issues] [JBoss JIRA] (ISPN-6844) Remove redundant enabled flag and disableInterceptor method from CacheWriter/Loader Interceptors

Ryan Emerson (JIRA) issues at jboss.org
Thu Aug 4 11:51:01 EDT 2016


     [ https://issues.jboss.org/browse/ISPN-6844?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Ryan Emerson updated ISPN-6844:
-------------------------------
              Status: Pull Request Sent  (was: Open)
    Git Pull Request: https://github.com/infinispan/infinispan/pull/4488


> Remove redundant enabled flag and disableInterceptor method from CacheWriter/Loader Interceptors
> ------------------------------------------------------------------------------------------------
>
>                 Key: ISPN-6844
>                 URL: https://issues.jboss.org/browse/ISPN-6844
>             Project: Infinispan
>          Issue Type: Enhancement
>          Components: Loaders and Stores
>            Reporter: Ryan Emerson
>            Assignee: Ryan Emerson
>
> Currently both the CacheWriter and CacheLoader interceptors utilise a method disableInterceptor which sets a boolean flag to false. This method is only every called by PersistenceManagerImpl when removing the interceptor, at which point it should not be possible for any of the removed interceptor's methods to be executed. Therefore we should be able to remove this flag, associated checks and the disableInterceptor method without issue. 



--
This message was sent by Atlassian JIRA
(v6.4.11#64026)


More information about the infinispan-issues mailing list