| | |
| | | * CDDL HEADER END |
| | | * |
| | | * |
| | | * Copyright 2008 Sun Microsystems, Inc. |
| | | * Copyright 2008-2010 Sun Microsystems, Inc. |
| | | */ |
| | | package org.opends.server.extensions; |
| | | import java.lang.reflect.Method; |
| | |
| | | cacheMisses.getAndIncrement(); |
| | | } |
| | | |
| | | return entry; |
| | | return (entry != null ? entry.duplicate(true) : null); |
| | | } |
| | | |
| | | |
| | |
| | | cacheMisses.getAndIncrement(); |
| | | } |
| | | |
| | | return entry; |
| | | return (entry != null ? entry.duplicate(true) : null); |
| | | } |
| | | |
| | | |
| | |
| | | cacheMisses.getAndIncrement(); |
| | | } |
| | | |
| | | return entry; |
| | | return (entry != null ? entry.duplicate(true) : null); |
| | | } |
| | | |
| | | |
| | |
| | | // The first cache in the order which can take this entry |
| | | // gets it. |
| | | if (entryCache.filtersAllowCaching(entry)) { |
| | | entryCache.putEntry(entry, backend, entryID); |
| | | entryCache.putEntry(entry.duplicate(false), |
| | | backend, entryID); |
| | | break; |
| | | } |
| | | } |
| | |
| | | // The first cache in the order which can take this entry |
| | | // gets it. |
| | | if (entryCache.filtersAllowCaching(entry)) { |
| | | return entryCache.putEntryIfAbsent(entry, backend, entryID); |
| | | return entryCache.putEntryIfAbsent(entry.duplicate(false), |
| | | backend, entryID); |
| | | } |
| | | } |
| | | |