Class MapSessionFactoryLookup

java.lang.Object
org.springframework.data.cassandra.core.cql.session.lookup.MapSessionFactoryLookup
All Implemented Interfaces:
SessionFactoryLookup

public class MapSessionFactoryLookup extends Object implements SessionFactoryLookup
Simple SessionFactoryLookup implementation that relies on a map for doing lookups.

Useful for testing environments or applications that need to match arbitrary String names to target SessionFactory objects. This class is not thread-safe for modifications. Once initialized, it can be shared amongst multiple threads and is thread-safe for reading.

Since:
2.0
Author:
Mark Paluch