001package com.nimbusds.infinispan.persistence.ldap;
002
003
004import com.nimbusds.infinispan.persistence.common.InfinispanEntry;
005
006
007/**
008 * Interface for resolving the appropriate LDAP write strategy for a given
009 * Infinispan entry. Implementations must be thread-safe.
010 */
011public interface LDAPWriteStrategyResolver<K,V> {
012
013
014        /**
015         * Resolves the appropriate LDAP write strategy for the specified
016         * Infinispan entry.
017         *
018         * @param infinispanEntry The Infinispan entry. Must not be
019         *                        {@code null}.
020         *
021         * @return The LDAP write strategy.
022         */
023        LDAPWriteStrategy resolveLDAPWriteStrategy(final InfinispanEntry<K,V> infinispanEntry);
024        
025}