Class Touch
- java.lang.Object
-
- org.trellisldp.ext.cassandra.query.CassandraQuery
-
- org.trellisldp.ext.cassandra.query.rdf.Touch
-
@ApplicationScoped public class Touch extends CassandraQuery
A query that adjusts the modified time of a resource.
-
-
Field Summary
-
Fields inherited from class org.trellisldp.ext.cassandra.query.CassandraQuery
consistency, preparedStmtAsync, queryString, readBinaryWorkers, session, writeWorkers
-
-
Constructor Summary
Constructors Constructor Description Touch()For use with RESTeasy and CDI proxies.Touch(CqlSession session, ConsistencyLevel consistency)Create a query that adjusts the modified time of a resource.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description CompletionStage<Void>execute(Instant modified, IRI id)-
Methods inherited from class org.trellisldp.ext.cassandra.query.CassandraQuery
executeSyncRead, preparedStatementAsync
-
-
-
-
Constructor Detail
-
Touch
public Touch()
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.
-
Touch
@Inject public Touch(CqlSession session, @MutableWriteConsistency ConsistencyLevel consistency)
Create a query that adjusts the modified time of a resource.- Parameters:
session- the cassandra sessionconsistency- the consistency level
-
-
Method Detail
-
execute
public CompletionStage<Void> execute(Instant modified, IRI id)
- Parameters:
modified- the new modification time to recordid- theIRIof the resource to modify- Returns:
- whether and when the modification succeeds
-
-