Class QueryExecutionRetry
java.lang.Object
org.aksw.jenax.dataaccess.sparql.execution.query.QueryExecutionWrapperBase<org.apache.jena.query.QueryExecution>
org.aksw.jena_sparql_api.retry.core.QueryExecutionRetry
- All Implemented Interfaces:
AutoCloseable,QueryExecutionWrapper,org.apache.jena.query.QueryExecution
public class QueryExecutionRetry
extends QueryExecutionWrapperBase<org.apache.jena.query.QueryExecution>
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected booleanprotected com.nurkiewicz.asyncretry.backoff.Backoffprotected booleanprotected intprotected longprotected com.nurkiewicz.asyncretry.policy.RetryPolicyprotected Supplier<ScheduledExecutorService>protected Supplier<org.apache.jena.query.QueryExecution>Fields inherited from class org.aksw.jenax.dataaccess.sparql.execution.query.QueryExecutionWrapperBase
decoratee -
Constructor Summary
ConstructorsConstructorDescriptionQueryExecutionRetry(Supplier<org.apache.jena.query.QueryExecution> supplier, com.nurkiewicz.asyncretry.policy.RetryPolicy retryPolicy, com.nurkiewicz.asyncretry.backoff.Backoff backoff, boolean fixedDelay, Supplier<ScheduledExecutorService> scheduler) -
Method Summary
Modifier and TypeMethodDescriptionvoidabort()<T> TbooleanexecAsk()org.apache.jena.rdf.model.Modelorg.apache.jena.rdf.model.ModelexecConstruct(org.apache.jena.rdf.model.Model model) Iterator<org.apache.jena.graph.Triple>org.apache.jena.rdf.model.Modelorg.apache.jena.rdf.model.ModelexecDescribe(org.apache.jena.rdf.model.Model model) Iterator<org.apache.jena.graph.Triple>org.apache.jena.query.ResultSet<T> TMethods inherited from class org.aksw.jenax.dataaccess.sparql.execution.query.QueryExecutionWrapperBase
afterExec, beforeExec, execConstructDataset, execConstructDataset, execConstructQuads, execJson, execJsonItems, getDelegate, getQueryString, onExceptionMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.aksw.jenax.dataaccess.sparql.execution.query.QueryExecutionWrapper
close, getContext, getDataset, getQuery, getTimeout1, getTimeout2, isClosed, tryGetDelegate, unwrap
-
Field Details
-
supplier
-
retryCount
protected int retryCount -
retryDelayInMs
protected long retryDelayInMs -
retryPolicy
protected com.nurkiewicz.asyncretry.policy.RetryPolicy retryPolicy -
backoff
protected com.nurkiewicz.asyncretry.backoff.Backoff backoff -
fixedDelay
protected boolean fixedDelay -
scheduler
-
aborted
protected boolean aborted
-
-
Constructor Details
-
QueryExecutionRetry
public QueryExecutionRetry(Supplier<org.apache.jena.query.QueryExecution> supplier, com.nurkiewicz.asyncretry.policy.RetryPolicy retryPolicy, com.nurkiewicz.asyncretry.backoff.Backoff backoff, boolean fixedDelay, Supplier<ScheduledExecutorService> scheduler)
-
-
Method Details
-
resolve
-
doTry
-
abort
public void abort() -
execAsk
public boolean execAsk()- Specified by:
execAskin interfaceorg.apache.jena.query.QueryExecution- Overrides:
execAskin classQueryExecutionWrapperBase<org.apache.jena.query.QueryExecution>
-
execSelect
public org.apache.jena.query.ResultSet execSelect()- Specified by:
execSelectin interfaceorg.apache.jena.query.QueryExecution- Overrides:
execSelectin classQueryExecutionWrapperBase<org.apache.jena.query.QueryExecution>
-
execConstruct
public org.apache.jena.rdf.model.Model execConstruct()- Specified by:
execConstructin interfaceorg.apache.jena.query.QueryExecution- Overrides:
execConstructin classQueryExecutionWrapperBase<org.apache.jena.query.QueryExecution>
-
execConstruct
public org.apache.jena.rdf.model.Model execConstruct(org.apache.jena.rdf.model.Model model) - Specified by:
execConstructin interfaceorg.apache.jena.query.QueryExecution- Overrides:
execConstructin classQueryExecutionWrapperBase<org.apache.jena.query.QueryExecution>
-
execConstructTriples
- Specified by:
execConstructTriplesin interfaceorg.apache.jena.query.QueryExecution- Overrides:
execConstructTriplesin classQueryExecutionWrapperBase<org.apache.jena.query.QueryExecution>
-
execDescribe
public org.apache.jena.rdf.model.Model execDescribe()- Specified by:
execDescribein interfaceorg.apache.jena.query.QueryExecution- Overrides:
execDescribein classQueryExecutionWrapperBase<org.apache.jena.query.QueryExecution>
-
execDescribe
public org.apache.jena.rdf.model.Model execDescribe(org.apache.jena.rdf.model.Model model) - Specified by:
execDescribein interfaceorg.apache.jena.query.QueryExecution- Overrides:
execDescribein classQueryExecutionWrapperBase<org.apache.jena.query.QueryExecution>
-
execDescribeTriples
- Specified by:
execDescribeTriplesin interfaceorg.apache.jena.query.QueryExecution- Overrides:
execDescribeTriplesin classQueryExecutionWrapperBase<org.apache.jena.query.QueryExecution>
-