@Override @Nullable public ValueWrapper putIfAbsent(Object key, @Nullable Object value) { Element existingElement = this.cache.putIfAbsent(new Element(key, value)); return toValueWrapper(existingElement); }
@Override public <K, V> boolean putIfAbsent(K key, V value) { return ehCache.putIfAbsent(new Element(key, value)) == null; }
@Override public ValueWrapper putIfAbsent(Object key, Object value) { Element existingElement = this.cache.putIfAbsent(new Element(key, value)); return (existingElement != null ? new SimpleValueWrapper(existingElement.getObjectValue()) : null); }
@Override @Nullable public ValueWrapper putIfAbsent(Object key, @Nullable Object value) { Element existingElement = this.cache.putIfAbsent(new Element(key, value)); return toValueWrapper(existingElement); }
@Override public Element put() { return underlyingCache.putIfAbsent(element); } });
@Override public Element putIfAbsent(final Element element, final boolean doNotNotifyCacheReplicators) throws NullPointerException { return underlyingCache.putIfAbsent(element, doNotNotifyCacheReplicators); }
/** * {@inheritDoc} */ public Element putIfAbsent(Element element) throws NullPointerException { return underlyingCache.putIfAbsent(element); }
@Override public Element put() { return underlyingCache.putIfAbsent(element, doNotNotifyCacheReplicators); } });
/** * {@inheritDoc} */ public Element putIfAbsent(Element arg0) throws NullPointerException { // THIS IS GENERATED CODE -- DO NOT HAND MODIFY! Thread t = Thread.currentThread(); ClassLoader prev = t.getContextClassLoader(); t.setContextClassLoader(this.classLoader); try { return this.cache.putIfAbsent(arg0); } finally { t.setContextClassLoader(prev); } }
/** * {@inheritDoc} */ public Element putIfAbsent(Element arg0, boolean arg1) throws NullPointerException { // THIS IS GENERATED CODE -- DO NOT HAND MODIFY! Thread t = Thread.currentThread(); ClassLoader prev = t.getContextClassLoader(); t.setContextClassLoader(this.classLoader); try { return this.cache.putIfAbsent(arg0, arg1); } finally { t.setContextClassLoader(prev); } }
final Element ersatz = new Element(key, REFRESH_VALUE); if (supportCache.putIfAbsent(ersatz) == null) {
@Override public Element put() { return underlyingCache.putIfAbsent(element, doNotNotifyCacheReplicators); } });
/** * {@inheritDoc} */ public Element putIfAbsent(Element element) throws NullPointerException { return underlyingCache.putIfAbsent(element); }
/** * {@inheritDoc} */ public Element putIfAbsent(final Element element, final boolean doNotNotifyCacheReplicators) throws NullPointerException { return underlyingCache.putIfAbsent(element, doNotNotifyCacheReplicators); }
@Override public Element put() { return underlyingCache.putIfAbsent(element, doNotNotifyCacheReplicators); } });
@Override public Element put() { return underlyingCache.putIfAbsent(element); } });
@Override public Element put() { return underlyingCache.putIfAbsent(element, doNotNotifyCacheReplicators); } });
/** * {@inheritDoc} */ public Element putIfAbsent(Element element) throws NullPointerException { return underlyingCache.putIfAbsent(element); }
@Override public Element putIfAbsent(Element element) throws NullPointerException { final Timer.Context ctx = putTimer.time(); try { return underlyingCache.putIfAbsent(element); } finally { ctx.stop(); } } }
@Override public ValueWrapper putIfAbsent(Object key, Object value) { Element existingElement = this.cache.putIfAbsent(new Element(key, value)); return toValueWrapper(existingElement); }