Class GetMemento
- java.lang.Object
-
- org.trellisldp.ext.cassandra.query.CassandraQuery
-
- org.trellisldp.ext.cassandra.query.rdf.GetMemento
-
@ApplicationScoped public class GetMemento extends CassandraQuery
Retrieve data for a Memento.
-
-
Field Summary
-
Fields inherited from class org.trellisldp.ext.cassandra.query.CassandraQuery
consistency, preparedStmtAsync, queryString, readBinaryWorkers, session, writeWorkers
-
-
Constructor Summary
Constructors Constructor Description GetMemento()For use with RESTeasy and CDI proxies.GetMemento(CqlSession session, ConsistencyLevel consistency)A class that retrieves data for a Memento.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description CompletionStage<AsyncResultSet>execute(IRI id, Instant time)-
Methods inherited from class org.trellisldp.ext.cassandra.query.CassandraQuery
executeSyncRead, preparedStatementAsync
-
-
-
-
Constructor Detail
-
GetMemento
public GetMemento()
For use with RESTeasy and CDI proxies.- API Note:
- This construtor is used by CDI runtimes that require a public, no-argument constructor. It should not be invoked directly in user code.
-
GetMemento
@Inject public GetMemento(CqlSession session, @MutableReadConsistency ConsistencyLevel consistency)
A class that retrieves data for a Memento.- Parameters:
session- the cassandra sessionconsistency- the consistency level
-
-
Method Detail
-
execute
public CompletionStage<AsyncResultSet> execute(IRI id, Instant time)
- Parameters:
id- theIRIof the Memento to retrievetime- the time for which this Memento is valid- Returns:
- the data for the Memento
-
-