Interface UserContextFactory<V,PC,TC>

Type Parameters:
V - the cache value type
PC - the persistent context type
TC - the transient context type
All Superinterfaces:
CacheEntryCreator<String,V,PC>, CacheEntryLocator<String,V>, CacheEntryRemover<String>
All Known Implementing Classes:
HotRodUserContextFactory, InfinispanUserContextFactory

public interface UserContextFactory<V,PC,TC> extends CacheEntryCreator<String,V,PC>, CacheEntryLocator<String,V>, CacheEntryRemover<String>
A factory for creating a user context.
Author:
Paul Ferraro
  • Method Details

    • createUserContext

      Map.Entry<PC,TC> createUserContext(V value)
      Creates a user context from the specified cache value
      Parameters:
      value - the cache value containing the user context
      Returns:
      a user context from the specified cache value