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 Details

    • supplier

      protected Supplier<org.apache.jena.query.QueryExecution> 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

      protected Supplier<ScheduledExecutorService> 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

      public <T> T resolve(Callable<T> callable)
    • doTry

      public <T> T doTry(Callable<T> callable)
    • abort

      public void abort()
    • execAsk

      public boolean execAsk()
      Specified by:
      execAsk in interface org.apache.jena.query.QueryExecution
      Overrides:
      execAsk in class QueryExecutionWrapperBase<org.apache.jena.query.QueryExecution>
    • execSelect

      public org.apache.jena.query.ResultSet execSelect()
      Specified by:
      execSelect in interface org.apache.jena.query.QueryExecution
      Overrides:
      execSelect in class QueryExecutionWrapperBase<org.apache.jena.query.QueryExecution>
    • execConstruct

      public org.apache.jena.rdf.model.Model execConstruct()
      Specified by:
      execConstruct in interface org.apache.jena.query.QueryExecution
      Overrides:
      execConstruct in class QueryExecutionWrapperBase<org.apache.jena.query.QueryExecution>
    • execConstruct

      public org.apache.jena.rdf.model.Model execConstruct(org.apache.jena.rdf.model.Model model)
      Specified by:
      execConstruct in interface org.apache.jena.query.QueryExecution
      Overrides:
      execConstruct in class QueryExecutionWrapperBase<org.apache.jena.query.QueryExecution>
    • execConstructTriples

      public Iterator<org.apache.jena.graph.Triple> execConstructTriples()
      Specified by:
      execConstructTriples in interface org.apache.jena.query.QueryExecution
      Overrides:
      execConstructTriples in class QueryExecutionWrapperBase<org.apache.jena.query.QueryExecution>
    • execDescribe

      public org.apache.jena.rdf.model.Model execDescribe()
      Specified by:
      execDescribe in interface org.apache.jena.query.QueryExecution
      Overrides:
      execDescribe in class QueryExecutionWrapperBase<org.apache.jena.query.QueryExecution>
    • execDescribe

      public org.apache.jena.rdf.model.Model execDescribe(org.apache.jena.rdf.model.Model model)
      Specified by:
      execDescribe in interface org.apache.jena.query.QueryExecution
      Overrides:
      execDescribe in class QueryExecutionWrapperBase<org.apache.jena.query.QueryExecution>
    • execDescribeTriples

      public Iterator<org.apache.jena.graph.Triple> execDescribeTriples()
      Specified by:
      execDescribeTriples in interface org.apache.jena.query.QueryExecution
      Overrides:
      execDescribeTriples in class QueryExecutionWrapperBase<org.apache.jena.query.QueryExecution>