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, org.aksw.jenax.dataaccess.sparql.execution.query.QueryExecutionWrapper, org.apache.jena.query.QueryExecution

public class QueryExecutionRetry extends org.aksw.jenax.dataaccess.sparql.execution.query.QueryExecutionWrapperBase<org.apache.jena.query.QueryExecution>
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    protected boolean
     
    protected com.nurkiewicz.asyncretry.backoff.Backoff
     
    protected boolean
     
    protected int
     
    protected long
     
    protected com.nurkiewicz.asyncretry.policy.RetryPolicy
     
     
    protected Supplier<org.apache.jena.query.QueryExecution>
     

    Fields inherited from class org.aksw.jenax.dataaccess.sparql.execution.query.QueryExecutionWrapperBase

    decoratee
  • Constructor Summary

    Constructors
    Constructor
    Description
    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 Summary

    Modifier and Type
    Method
    Description
    void
     
    <T> T
    doTry(Callable<T> callable)
     
    boolean
     
    org.apache.jena.rdf.model.Model
     
    org.apache.jena.rdf.model.Model
    execConstruct(org.apache.jena.rdf.model.Model model)
     
    Iterator<org.apache.jena.graph.Triple>
     
    org.apache.jena.rdf.model.Model
     
    org.apache.jena.rdf.model.Model
    execDescribe(org.apache.jena.rdf.model.Model model)
     
    Iterator<org.apache.jena.graph.Triple>
     
    org.apache.jena.query.ResultSet
     
    <T> T
    resolve(Callable<T> callable)
     

    Methods inherited from class org.aksw.jenax.dataaccess.sparql.execution.query.QueryExecutionWrapperBase

    afterExec, beforeExec, execConstructDataset, execConstructDataset, execConstructQuads, execJson, execJsonItems, getDelegate, getQueryString, onException

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface org.aksw.jenax.dataaccess.sparql.execution.query.QueryExecutionWrapper

    close, getContext, getDataset, getQuery, getTimeout1, getTimeout2, isClosed, tryGetDelegate, unwrap
  • 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 org.aksw.jenax.dataaccess.sparql.execution.query.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 org.aksw.jenax.dataaccess.sparql.execution.query.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 org.aksw.jenax.dataaccess.sparql.execution.query.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 org.aksw.jenax.dataaccess.sparql.execution.query.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 org.aksw.jenax.dataaccess.sparql.execution.query.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 org.aksw.jenax.dataaccess.sparql.execution.query.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 org.aksw.jenax.dataaccess.sparql.execution.query.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 org.aksw.jenax.dataaccess.sparql.execution.query.QueryExecutionWrapperBase<org.apache.jena.query.QueryExecution>