Class ServiceFromCache

All Implemented Interfaces:
ComponentLifecycle, ServiceExtractor

@ComponentProfile(summary="Extract the service to execute from a cache", recommended=CacheConnection.class, since="3.8.4") public class ServiceFromCache extends ExtractorWithConnection
Extract the service to execute from a cache

This allows you to retrieve a service (stored as a String) from a configured Cache instance; it supports the expression syntax so you can build up the key for the cache from metadata or similar. It will not remove the cache entry.

The alternative to this would be to use RetrieveFromCacheService and subsequently a ServiceFromDataInputParameter (from metadata). How the dynamic services are inserted into the cache is up to you.

See Also:

In the adapter configuration file this class is aliased as dynamic-service-from-cache which is the preferred alternative to the fully qualified classname when building your configuration.