@ApplicationScoped public class Mementos extends CassandraQuery
consistency, queryString, readBinaryWorkers, session, writeWorkers| Constructor and Description |
|---|
Mementos()
For use with RESTeasy and CDI proxies.
|
Mementos(com.datastax.oss.driver.api.core.CqlSession session,
com.datastax.oss.driver.api.core.ConsistencyLevel consistency)
Create a query that retrieves a list of mementos.
|
| Modifier and Type | Method and Description |
|---|---|
java.util.concurrent.CompletionStage<com.datastax.oss.driver.api.core.cql.AsyncResultSet> |
execute(org.apache.commons.rdf.api.IRI id) |
executeSyncRead, preparedStatement, preparedStatementAsyncpublic Mementos()
@Inject
public Mementos(com.datastax.oss.driver.api.core.CqlSession session,
@MutableReadConsistency
com.datastax.oss.driver.api.core.ConsistencyLevel consistency)
session - the cassandra sessionconsistency - the consistency levelpublic java.util.concurrent.CompletionStage<com.datastax.oss.driver.api.core.cql.AsyncResultSet> execute(org.apache.commons.rdf.api.IRI id)
id - the IRI of the resource the Mementos of which are to be catalogedAsyncResultSet with the modified-dates of any Mementos for this resource.
There will be at least one (the most recent one).