@ApplicationScoped @PermitAll public class CassandraSessionInitializer extends Object
| Constructor and Description |
|---|
CassandraSessionInitializer() |
| Modifier and Type | Method and Description |
|---|---|
void |
destroy() |
com.datastax.driver.core.Session |
getSession()
Produces the Cassandra session, waiting for the background job to finish if needed.
|
void |
init()
Sends the order to build the session as soon as this is constructed.
|
@PostConstruct public void init()
@PreDestroy public void destroy() throws Exception
Exception@Produces @ApplicationScoped public com.datastax.driver.core.Session getSession()
Copyright © 2015–2016 Red Hat, Inc.. All rights reserved.