Examples of CachePutOperation


Examples of com.hazelcast.cache.impl.operation.CachePutOperation

                return new CacheContainsKeyOperation();
            }
        };
        constructors[PUT] = new ConstructorFunction<Integer, IdentifiedDataSerializable>() {
            public IdentifiedDataSerializable createNew(Integer arg) {
                return new CachePutOperation();
            }
        };
        constructors[PUT_IF_ABSENT] = new ConstructorFunction<Integer, IdentifiedDataSerializable>() {
            public IdentifiedDataSerializable createNew(Integer arg) {
                return new CachePutIfAbsentOperation();
View Full Code Here

Examples of com.hazelcast.cache.impl.operation.CachePutOperation

        this.nameWithPrefix = nameWithPrefix;
    }

    @Override
    public Operation createPutOperation(Data key, Data value, ExpiryPolicy policy, boolean get, int completionId) {
        return new CachePutOperation(nameWithPrefix, key, value, policy, get, completionId);
    }
View Full Code Here

Examples of org.springframework.cache.interceptor.CachePutOperation

    ceo.setName(ae.toString());
    return ceo;
  }

  CacheOperation parseUpdateAnnotation(AnnotatedElement ae, CachePut caching) {
    CachePutOperation cuo = new CachePutOperation();
    cuo.setCacheNames(caching.value());
    cuo.setCondition(caching.condition());
    cuo.setKey(caching.key());
    cuo.setName(ae.toString());
    return cuo;
  }
View Full Code Here

Examples of org.springframework.cache.interceptor.CachePutOperation

    for (Element opElement : putCacheMethods) {
      String name = prop.merge(opElement, parserContext.getReaderContext());
      TypedStringValue nameHolder = new TypedStringValue(name);
      nameHolder.setSource(parserContext.extractSource(opElement));
      CacheOperation op = prop.merge(opElement, parserContext.getReaderContext(), new CachePutOperation());

      Collection<CacheOperation> col = cacheOpMap.get(nameHolder);
      if (col == null) {
        col = new ArrayList<CacheOperation>(2);
        cacheOpMap.put(nameHolder, col);
View Full Code Here

Examples of org.springframework.cache.interceptor.CachePutOperation

    ceo.setName(ae.toString());
    return ceo;
  }

  CacheOperation parseUpdateAnnotation(AnnotatedElement ae, CachePut caching) {
    CachePutOperation cuo = new CachePutOperation();
    cuo.setCacheNames(caching.value());
    cuo.setCondition(caching.condition());
    cuo.setKey(caching.key());
    cuo.setName(ae.toString());
    return cuo;
  }
View Full Code Here

Examples of org.springframework.cache.interceptor.CachePutOperation

    return op;
  }

  CacheOperation parsePutAnnotation(AnnotatedElement ae, DefaultCacheConfig defaultConfig, CachePut caching) {
    CachePutOperation op = new CachePutOperation();

    op.setCacheNames(caching.value());
    op.setCondition(caching.condition());
    op.setUnless(caching.unless());
    op.setKey(caching.key());
    op.setKeyGenerator(caching.keyGenerator());
    op.setCacheManager(caching.cacheManager());
    op.setCacheResolver(caching.cacheResolver());
    op.setName(ae.toString());

    defaultConfig.applyDefault(op);
    validateCacheOperation(ae, op);

    return op;
View Full Code Here

Examples of org.springframework.cache.interceptor.CachePutOperation

    for (Element opElement : putCacheMethods) {
      String name = prop.merge(opElement, parserContext.getReaderContext());
      TypedStringValue nameHolder = new TypedStringValue(name);
      nameHolder.setSource(parserContext.extractSource(opElement));
      CachePutOperation op = prop.merge(opElement, parserContext.getReaderContext(), new CachePutOperation());
      op.setUnless(getAttributeValue(opElement, "unless", ""));

      Collection<CacheOperation> col = cacheOpMap.get(nameHolder);
      if (col == null) {
        col = new ArrayList<CacheOperation>(2);
        cacheOpMap.put(nameHolder, col);
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.