Package zipkin2.storage.cassandra.v1
Class SessionFactory.Default
java.lang.Object
zipkin2.storage.cassandra.v1.SessionFactory.Default
- All Implemented Interfaces:
SessionFactory
- Enclosing interface:
- SessionFactory
public static final class SessionFactory.Default extends Object implements SessionFactory
-
Nested Class Summary
Nested classes/interfaces inherited from interface zipkin2.storage.cassandra.v1.SessionFactory
SessionFactory.Default
-
Constructor Summary
Constructors Constructor Description Default()
-
Method Summary
Modifier and Type Method Description com.datastax.driver.core.Session
create(CassandraStorage cassandra)
Creates a session and ensures schema if configured.
-
Constructor Details
-
Default
public Default()
-
-
Method Details
-
create
Creates a session and ensures schema if configured. Closes the cluster and session if any exception occurred.- Specified by:
create
in interfaceSessionFactory
-