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 java.lang.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
All Methods Instance Methods Concrete Methods Modifier and Type Method Description com.datastax.driver.core.Session
create(CassandraStorage cassandra)
Creates a session and ensures schema if configured.
-
-
-
Method Detail
-
create
public com.datastax.driver.core.Session create(CassandraStorage cassandra)
Creates a session and ensures schema if configured. Closes the cluster and session if any exception occurred.- Specified by:
create
in interfaceSessionFactory
-
-