Package org.teiid.spring.data.cassandra
Class CassandraConnectionFactory
- java.lang.Object
-
- org.teiid.spring.data.cassandra.CassandraConnectionFactory
-
- All Implemented Interfaces:
Closeable
,AutoCloseable
,org.teiid.resource.api.ConnectionFactory<CassandraConnection>
,BaseConnectionFactory<CassandraConnection>
public class CassandraConnectionFactory extends Object implements BaseConnectionFactory<CassandraConnection>
-
-
Constructor Summary
Constructors Constructor Description CassandraConnectionFactory(CassandraConfiguration cassandraConfiguration)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
close()
CassandraConnection
getConnection()
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.teiid.spring.data.BaseConnectionFactory
getAlias, getTranslatorName
-
-
-
-
Constructor Detail
-
CassandraConnectionFactory
public CassandraConnectionFactory(CassandraConfiguration cassandraConfiguration)
-
-
Method Detail
-
getConnection
public CassandraConnection getConnection() throws Exception
- Specified by:
getConnection
in interfaceorg.teiid.resource.api.ConnectionFactory<CassandraConnection>
- Throws:
Exception
-
close
public void close() throws IOException
- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceCloseable
- Throws:
IOException
-
-