Class BaseCustomInterceptor

  • All Implemented Interfaces:
    org.infinispan.commands.Visitor, AsyncInterceptor

    @Deprecated
    public class BaseCustomInterceptor
    extends CommandInterceptor
    Deprecated.
    Since 9.0, use BaseCustomAsyncInterceptor instead.
    Anyone using the AdvancedCache.addInterceptor(CommandInterceptor, int) method (or any of its overloaded forms) or registering custom interceptors via XML should extend this base class when creating their own custom interceptors.

    As of Infinispan 5.1, annotations on custom interceptors, including Inject, Start and Stop will not be respected and callbacks will not be made.

    Instead, custom interceptor authors should extend this base class to gain access to Cache and EmbeddedCacheManager, from which other components may be accessed. Further, lifecycle should be implemented by overriding start() and stop() as defined in this class.

    Author:
    Manik Surtani
    • Method Summary

      All Methods Instance Methods Concrete Methods Deprecated Methods 
      Modifier and Type Method Description
      protected void start()
      Deprecated.
       
      protected void stop()
      Deprecated.
       
      • Methods inherited from class org.infinispan.commands.AbstractVisitor

        visitClearCommand, visitCollection, visitCommitCommand, visitComputeCommand, visitComputeIfAbsentCommand, visitDistributedExecuteCommand, visitEntrySetCommand, visitEvictCommand, visitGetAllCommand, visitGetCacheEntryCommand, visitGetKeysInGroupCommand, visitGetKeyValueCommand, visitInvalidateCommand, visitInvalidateL1Command, visitKeySetCommand, visitLockControlCommand, visitPrepareCommand, visitPutKeyValueCommand, visitPutMapCommand, visitReadOnlyKeyCommand, visitReadOnlyManyCommand, visitReadWriteKeyCommand, visitReadWriteKeyValueCommand, visitReadWriteManyCommand, visitReadWriteManyEntriesCommand, visitRemoveCommand, visitReplaceCommand, visitRollbackCommand, visitSizeCommand, visitUnknownCommand, visitWriteOnlyKeyCommand, visitWriteOnlyKeyValueCommand, visitWriteOnlyManyCommand, visitWriteOnlyManyEntriesCommand
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
      • Methods inherited from interface org.infinispan.commands.Visitor

        visitApplyDeltaCommand, visitRemoveExpiredCommand
    • Field Detail

      • cache

        protected Cache<?,​?> cache
        Deprecated.
    • Constructor Detail

      • BaseCustomInterceptor

        public BaseCustomInterceptor()
        Deprecated.
    • Method Detail

      • start

        protected void start()
        Deprecated.
      • stop

        protected void stop()
        Deprecated.