Class CommandInterceptor

    • Field Detail

      • cacheConfiguration

        protected Configuration cacheConfiguration
        Deprecated.
    • Constructor Detail

      • CommandInterceptor

        public CommandInterceptor()
        Deprecated.
    • Method Detail

      • getLog

        protected Log getLog()
        Deprecated.
      • getNext

        public final CommandInterceptor getNext()
        Deprecated.
        Retrieves the next interceptor in the chain. Since 9.0, it returns null if the next interceptor does not extend CommandInterceptor.
        Returns:
        the next interceptor in the chain.
      • hasNext

        public final boolean hasNext()
        Deprecated.
        Note: Unlike getNext(), this method does not ignore interceptors that do not extend CommandInterceptor
        Returns:
        true if there is another interceptor in the chain after this; false otherwise.
      • setNext

        public final void setNext​(CommandInterceptor ignored)
        Deprecated.
        Does nothing since 9.0.
      • invokeNextInterceptor

        public final Object invokeNextInterceptor​(InvocationContext ctx,
                                                  VisitableCommand command)
                                           throws Throwable
        Deprecated.
        Invokes the next interceptor in the chain. This is how interceptor implementations should pass a call up the chain to the next interceptor.
        Parameters:
        ctx - invocation context
        command - command to pass up the chain.
        Returns:
        return value of the invocation
        Throws:
        Throwable - in the event of problems
      • handleDefault

        protected Object handleDefault​(InvocationContext ctx,
                                       VisitableCommand command)
                                throws Throwable
        Deprecated.
        The default behaviour of the visitXXX methods, which is to ignore the call and pass the call up to the next interceptor in the chain.
        Overrides:
        handleDefault in class AbstractVisitor
        Parameters:
        ctx - invocation context
        command - command to invoke
        Returns:
        return value
        Throws:
        Throwable - in the event of problems
      • getLockAcquisitionTimeout

        protected final long getLockAcquisitionTimeout​(FlagAffectedCommand command,
                                                       boolean skipLocking)
        Deprecated.
      • hasSkipLocking

        protected final boolean hasSkipLocking​(FlagAffectedCommand command)
        Deprecated.