@Override public Object invoke(MethodInvocation invocation) throws Throwable { if ("call".equals(invocation.getMethod().getName()) && this.pollSkipStrategy.skipPoll()) { if (logger.isDebugEnabled()) { logger.debug("Skipping poll because " + this.pollSkipStrategy.getClass().getName() + ".skipPoll() returned true"); } return null; } else { return invocation.proceed(); } }
@Override public Object invoke(MethodInvocation invocation) throws Throwable { if ("call".equals(invocation.getMethod().getName()) && this.pollSkipStrategy.skipPoll()) { if (logger.isDebugEnabled()) { logger.debug("Skipping poll because " + this.pollSkipStrategy.getClass().getName() + ".skipPoll() returned true"); } return Boolean.FALSE; } else { return invocation.proceed(); } }