Examples of afterInvocation()


Examples of javax.cache.annotation.CacheRemoveEntry.afterInvocation()

      final CacheKeyGenerator cacheKeyGenerator = cacheKeyInvocationContext.unwrap(CacheKeyInvocationContextImpl.class).getCacheKeyGenerator();
      final Cache<GeneratedCacheKey, Object> cache = cacheResolver.resolveCache(cacheKeyInvocationContext);
      final CacheRemoveEntry cacheRemoveEntry = cacheKeyInvocationContext.getCacheAnnotation();
      final GeneratedCacheKey cacheKey = cacheKeyGenerator.generateCacheKey(cacheKeyInvocationContext);

      if (!cacheRemoveEntry.afterInvocation()) {
         cache.remove(cacheKey);
         if (log.isTraceEnabled()) {
            log.tracef("Remove entry with key '%s' in cache '%s' before method invocation", cacheKey, cache.getName());
         }
      }
View Full Code Here

Examples of javax.cache.annotation.CacheRemoveEntry.afterInvocation()

         }
      }

      final Object result = invocationContext.proceed();

      if (cacheRemoveEntry.afterInvocation()) {
         cache.remove(cacheKey);
         if (log.isTraceEnabled()) {
            log.tracef("Remove entry with key '%s' in cache '%s' after method invocation", cacheKey, cache.getName());
         }
      }
View Full Code Here

Examples of javax.cache.annotation.CacheRemoveEntry.afterInvocation()

      final CacheKeyGenerator cacheKeyGenerator = cacheKeyInvocationContext.unwrap(CacheKeyInvocationContextImpl.class).getCacheKeyGenerator();
      final Cache<CacheKey, Object> cache = cacheResolver.resolveCache(cacheKeyInvocationContext);
      final CacheRemoveEntry cacheRemoveEntry = cacheKeyInvocationContext.getCacheAnnotation();
      final CacheKey cacheKey = cacheKeyGenerator.generateCacheKey(cacheKeyInvocationContext);

      if (!cacheRemoveEntry.afterInvocation()) {
         cache.remove(cacheKey);
         if (log.isTraceEnabled()) {
            log.tracef("Remove entry with key '%s' in cache '%s' before method invocation", cacheKey, cache.getName());
         }
      }
View Full Code Here

Examples of javax.cache.annotation.CacheRemoveEntry.afterInvocation()

         }
      }

      final Object result = invocationContext.proceed();

      if (cacheRemoveEntry.afterInvocation()) {
         cache.remove(cacheKey);
         if (log.isTraceEnabled()) {
            log.tracef("Remove entry with key '%s' in cache '%s' after method invocation", cacheKey, cache.getName());
         }
      }
View Full Code Here

Examples of net.sf.hajdbc.durability.DurabilityListener.afterInvocation()

        {
          throw proxy.getExceptionFactory().createException(e);
        }
        finally
        {
          listener.afterInvocation(event);
        }
      }
    };
  }
View Full Code Here

Examples of net.sf.hajdbc.state.StateManager.afterInvocation()

      this.cluster.deactivate(database, stateManager);
    }

    for (InvocationEvent event: invokers.keySet())
    {
      stateManager.afterInvocation(event);
    }
  }
}
View Full Code Here

Examples of net.sf.hajdbc.state.StateManager.afterInvocation()

            this.cluster.deactivate(backup, stateManager);
          }
        }
      }
     
      stateManager.afterInvocation(invocation);
    }
  }
 
  private boolean deactivateSlave(D primary, D backup, InvocationEvent invocation, Map<String, InvokerEvent> invokers)
  {
View Full Code Here

Examples of org.gatein.common.concurrent.Valve.afterInvocation()

            response = super.invoke(invocation);
         }
         finally
         {
            // Release the valve
            valve.afterInvocation();
         }

         // Stop the container if necessary
         if (response instanceof UnavailableResponse)
         {
View Full Code Here

Examples of org.gatein.common.concurrent.Valve.afterInvocation()

            response = super.invoke(invocation);
         }
         finally
         {
            // Release the valve
            valve.afterInvocation();
         }

         // Stop the container if necessary
         if (response instanceof UnavailableResponse)
         {
View Full Code Here

Examples of org.jboss.portal.common.concurrent.Valve.afterInvocation()

            response = super.invoke(invocation);
         }
         finally
         {
            // Release the valve
            valve.afterInvocation();
         }

         // Stop the container if necessary
         if (response instanceof UnavailableResponse)
         {
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.