Package com.boomi.connector.util
Interface ConnectorCacheFactory<K,C extends ConnectorCache<K>,X extends ConnectorContext>
-
- All Known Implementing Classes:
BootstrapConnector
,WSConnector
public interface ConnectorCacheFactory<K,C extends ConnectorCache<K>,X extends ConnectorContext>
Interface for a factory which can be used to create an instance of a ConnectorCache. Used byConnectorCache.getCache(K, X, com.boomi.connector.util.ConnectorCacheFactory<K, C, X>)
to instantiate ConnectorCaches on demand.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description C
createCache(K key, X context)
Returns a new instance of a ConnectorCache for the given key and context.
-
-
-
Method Detail
-
createCache
C createCache(K key, X context)
Returns a new instance of a ConnectorCache for the given key and context.- Parameters:
key
- the key by which this ConnectorCache will be cached in the connector cachecontext
- the current connector context. Note, this context should not be held by the ConnectorCache instance, but may be used to retrieve connection properties.- Returns:
- a valid ConnectorCache instance
-
-