Class SizeCommand

    • Constructor Detail

      • SizeCommand

        public SizeCommand​(Cache<Object,​?> cache,
                           long flags)
    • Method Detail

      • perform

        public Integer perform​(InvocationContext ctx)
                        throws Throwable
        Description copied from interface: VisitableCommand
        Performs the primary function of the command. Please see specific implementation classes for details on what is performed as well as return types. Important: this method will be invoked at the end of interceptors chain. It should never be called directly from a custom interceptor.
        Specified by:
        perform in interface ReplicableCommand
        Specified by:
        perform in interface VisitableCommand
        Parameters:
        ctx - invocation context
        Returns:
        arbitrary return value generated by performing this command
        Throws:
        Throwable - in the event of problems.