public interface ServiceConnectionFactory
Modifier and Type | Method and Description |
---|---|
com.datastax.driver.core.Cluster |
cluster()
Get the
Cluster object associated with the only Cassandra service bound to
the app. |
com.datastax.driver.core.Cluster |
cluster(CassandraClusterConfig config)
Get the
Cluster object associated with the only Cassandra service bound to
the app configured as specified. |
com.datastax.driver.core.Cluster |
cluster(String serviceId)
Get the
Cluster object associated with the Cassandra serviceId
bound to the app. |
com.datastax.driver.core.Cluster |
cluster(String serviceId,
CassandraClusterConfig config)
Get the
Cluster object associated with the Cassandra serviceId
bound to the app configured as specified. |
DataSource |
dataSource() |
DataSource |
dataSource(DataSourceConfig dataSourceConfig) |
DataSource |
dataSource(String serviceId) |
DataSource |
dataSource(String serviceId,
DataSourceConfig dataSourceConfig) |
MongoDbFactory |
mongoDbFactory() |
MongoDbFactory |
mongoDbFactory(MongoDbFactoryConfig mongoDbFactoryConfig) |
MongoDbFactory |
mongoDbFactory(String serviceId) |
MongoDbFactory |
mongoDbFactory(String serviceId,
MongoDbFactoryConfig mongoDbFactoryConfig) |
ConnectionFactory |
rabbitConnectionFactory() |
ConnectionFactory |
rabbitConnectionFactory(RabbitConnectionFactoryConfig rabbitConnectionFactoryConfig) |
ConnectionFactory |
rabbitConnectionFactory(String serviceId) |
ConnectionFactory |
rabbitConnectionFactory(String serviceId,
RabbitConnectionFactoryConfig rabbitConnectionFactoryConfig) |
RedisConnectionFactory |
redisConnectionFactory() |
RedisConnectionFactory |
redisConnectionFactory(PooledServiceConnectorConfig redisConnectionFactoryConfig) |
RedisConnectionFactory |
redisConnectionFactory(String serviceId) |
RedisConnectionFactory |
redisConnectionFactory(String serviceId,
PooledServiceConnectorConfig redisConnectionFactoryConfig) |
Object |
service() |
<T> T |
service(Class<T> serviceConnectorType) |
Object |
service(String serviceId) |
<T> T |
service(String serviceId,
Class<T> serviceConnectorType) |
<T> T |
service(String serviceId,
Class<T> serviceConnectorType,
ServiceConnectorConfig serviceConnectorConfig) |
DataSource dataSource()
DataSource dataSource(DataSourceConfig dataSourceConfig)
DataSource dataSource(String serviceId)
DataSource dataSource(String serviceId, DataSourceConfig dataSourceConfig)
MongoDbFactory mongoDbFactory()
MongoDbFactory mongoDbFactory(MongoDbFactoryConfig mongoDbFactoryConfig)
MongoDbFactory mongoDbFactory(String serviceId)
MongoDbFactory mongoDbFactory(String serviceId, MongoDbFactoryConfig mongoDbFactoryConfig)
ConnectionFactory rabbitConnectionFactory()
ConnectionFactory rabbitConnectionFactory(RabbitConnectionFactoryConfig rabbitConnectionFactoryConfig)
ConnectionFactory rabbitConnectionFactory(String serviceId)
ConnectionFactory rabbitConnectionFactory(String serviceId, RabbitConnectionFactoryConfig rabbitConnectionFactoryConfig)
RedisConnectionFactory redisConnectionFactory()
RedisConnectionFactory redisConnectionFactory(PooledServiceConnectorConfig redisConnectionFactoryConfig)
RedisConnectionFactory redisConnectionFactory(String serviceId)
RedisConnectionFactory redisConnectionFactory(String serviceId, PooledServiceConnectorConfig redisConnectionFactoryConfig)
com.datastax.driver.core.Cluster cluster()
Cluster
object associated with the only Cassandra service bound to
the app.Cluster
CloudException
- if there are either 0 or more than
1 Cassandra database services.com.datastax.driver.core.Cluster cluster(CassandraClusterConfig config)
Cluster
object associated with the only Cassandra service bound to
the app configured as specified.config
- configuration for the Cluster createdCluster
CloudException
- if there are either 0 or more than
1 Cassandra database services.com.datastax.driver.core.Cluster cluster(String serviceId)
Cluster
object associated with the Cassandra serviceId
bound to the app.serviceId
- the Cassandra serviceIdCluster
CloudException
- if there is no service bound with
the serviceId
com.datastax.driver.core.Cluster cluster(String serviceId, CassandraClusterConfig config)
Cluster
object associated with the Cassandra serviceId
bound to the app configured as specified.serviceId
- the Cassandra serviceIdconfig
- configuration for the Cluster createdCluster
CloudException
- if there is no service bound with
the serviceId
Object service()
<T> T service(Class<T> serviceConnectorType)
<T> T service(String serviceId, Class<T> serviceConnectorType, ServiceConnectorConfig serviceConnectorConfig)