Class Delete
- java.lang.Object
-
- org.trellisldp.ext.cassandra.query.CassandraQuery
-
- org.trellisldp.ext.cassandra.query.binary.BinaryQuery
-
- org.trellisldp.ext.cassandra.query.binary.Delete
-
@ApplicationScoped public class Delete extends BinaryQuery
A query that deletes a binary.
-
-
Field Summary
-
Fields inherited from class org.trellisldp.ext.cassandra.query.CassandraQuery
consistency, preparedStmtAsync, queryString, readBinaryWorkers, session, writeWorkers
-
-
Constructor Summary
Constructors Constructor Description Delete()For use with RESTeasy and CDI proxies.Delete(CqlSession session, ConsistencyLevel consistency)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description CompletionStage<Void>execute(IRI id)-
Methods inherited from class org.trellisldp.ext.cassandra.query.CassandraQuery
executeSyncRead, preparedStatementAsync
-
-
-
-
Constructor Detail
-
Delete
public Delete()
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.
-
Delete
@Inject public Delete(CqlSession session, @BinaryWriteConsistency ConsistencyLevel consistency)
- Parameters:
session- the cassandra sessionconsistency- the consistency level
-
-
Method Detail
-
execute
public CompletionStage<Void> execute(IRI id)
- Parameters:
id- anIRIfor a binary to delete- Returns:
- whether and when it has been deleted
-
-