Codota Logo
CacheEvictOperation
Code IndexAdd Codota to your IDE (free)

How to use
CacheEvictOperation
in
org.springframework.cache.interceptor

Best Java code snippets using org.springframework.cache.interceptor.CacheEvictOperation (Showing top 9 results out of 315)

  • Common ways to obtain CacheEvictOperation
private void myMethod () {
CacheEvictOperation c =
  • Codota Icon(CacheEvictOperation) context.metadata.operation
  • Codota IconCacheEvictOperation.Builder cacheEvictOperationBuilder;cacheEvictOperationBuilder.build()
  • Codota IconCacheEvictOperation.Builder cacheEvictOperationBuilder;new CacheEvictOperation(cacheEvictOperationBuilder)
  • Smart code suggestions by Codota
}
origin: spring-projects/spring-framework

  public CacheEvictOperation build() {
    return new CacheEvictOperation(this);
  }
}
origin: spring-projects/spring-framework

private void processCacheEvicts(
    Collection<CacheOperationContext> contexts, boolean beforeInvocation, @Nullable Object result) {
  for (CacheOperationContext context : contexts) {
    CacheEvictOperation operation = (CacheEvictOperation) context.metadata.operation;
    if (beforeInvocation == operation.isBeforeInvocation() && isConditionPassing(context, result)) {
      performCacheEvict(context, operation, result);
    }
  }
}
origin: spring-projects/spring-framework

private void performCacheEvict(
    CacheOperationContext context, CacheEvictOperation operation, @Nullable Object result) {
  Object key = null;
  for (Cache cache : context.getCaches()) {
    if (operation.isCacheWide()) {
      logInvalidating(context, operation, null);
      doClear(cache);
    }
    else {
      if (key == null) {
        key = generateKey(context, result);
      }
      logInvalidating(context, operation, key);
      doEvict(cache, key);
    }
  }
}
origin: org.springframework/spring-context

private void performCacheEvict(
    CacheOperationContext context, CacheEvictOperation operation, @Nullable Object result) {
  Object key = null;
  for (Cache cache : context.getCaches()) {
    if (operation.isCacheWide()) {
      logInvalidating(context, operation, null);
      doClear(cache);
    }
    else {
      if (key == null) {
        key = generateKey(context, result);
      }
      logInvalidating(context, operation, key);
      doEvict(cache, key);
    }
  }
}
origin: org.springframework/spring-context

private void processCacheEvicts(
    Collection<CacheOperationContext> contexts, boolean beforeInvocation, @Nullable Object result) {
  for (CacheOperationContext context : contexts) {
    CacheEvictOperation operation = (CacheEvictOperation) context.metadata.operation;
    if (beforeInvocation == operation.isBeforeInvocation() && isConditionPassing(context, result)) {
      performCacheEvict(context, operation, result);
    }
  }
}
origin: org.springframework/spring-context

  public CacheEvictOperation build() {
    return new CacheEvictOperation(this);
  }
}
origin: apache/servicemix-bundles

private void performCacheEvict(
    CacheOperationContext context, CacheEvictOperation operation, @Nullable Object result) {
  Object key = null;
  for (Cache cache : context.getCaches()) {
    if (operation.isCacheWide()) {
      logInvalidating(context, operation, null);
      doClear(cache);
    }
    else {
      if (key == null) {
        key = generateKey(context, result);
      }
      logInvalidating(context, operation, key);
      doEvict(cache, key);
    }
  }
}
origin: apache/servicemix-bundles

private void processCacheEvicts(
    Collection<CacheOperationContext> contexts, boolean beforeInvocation, @Nullable Object result) {
  for (CacheOperationContext context : contexts) {
    CacheEvictOperation operation = (CacheEvictOperation) context.metadata.operation;
    if (beforeInvocation == operation.isBeforeInvocation() && isConditionPassing(context, result)) {
      performCacheEvict(context, operation, result);
    }
  }
}
origin: apache/servicemix-bundles

  public CacheEvictOperation build() {
    return new CacheEvictOperation(this);
  }
}
org.springframework.cache.interceptorCacheEvictOperation

Javadoc

Class describing a cache 'evict' operation.

Most used methods

  • <init>
    Create a new CacheEvictOperation instance from the given builder.
  • isBeforeInvocation
  • isCacheWide

Popular in Java

  • Creating JSON documents from java classes using gson
  • getResourceAsStream (ClassLoader)
  • getSupportFragmentManager (FragmentActivity)
    Return the FragmentManager for interacting with fragments associated with this activity.
  • orElseThrow (Optional)
  • ConnectException (java.net)
    A ConnectException is thrown if a connection cannot be established to a remote host on a specific po
  • Stack (java.util)
    The Stack class represents a last-in-first-out (LIFO) stack of objects. It extends class Vector with
  • StringTokenizer (java.util)
    The string tokenizer class allows an application to break a string into tokens. The tokenization met
  • TreeMap (java.util)
    A Red-Black tree based NavigableMap implementation. The map is sorted according to the Comparable of
  • Logger (org.apache.log4j)
    This is the central class in the log4j package. Most logging operations, except configuration, are d
  • Table (org.hibernate.mapping)
    A relational table
Codota Logo
  • Products

    Search for Java codeSearch for JavaScript codeEnterprise
  • IDE Plugins

    IntelliJ IDEAWebStormAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogCodota Academy Plugin user guide Terms of usePrivacy policyJava Code IndexJavascript Code Index
Get Codota for your IDE now