Class QueryExecutionFactoryRetry
java.lang.Object
org.aksw.jenax.dataaccess.sparql.factory.execution.query.QueryExecutionFactoryWrapperBase<QueryExecutionFactory>
org.aksw.jenax.dataaccess.sparql.factory.execution.query.QueryExecutionFactoryDecorator
org.aksw.jena_sparql_api.retry.core.QueryExecutionFactoryRetry
- All Implemented Interfaces:
AutoCloseable,QueryExecutionFactory,QueryExecutionFactoryQuery,QueryExecutionFactoryString
-
Field Summary
FieldsFields inherited from class org.aksw.jenax.dataaccess.sparql.factory.execution.query.QueryExecutionFactoryWrapperBase
decoratee -
Constructor Summary
ConstructorsConstructorDescriptionQueryExecutionFactoryRetry(QueryExecutionFactory decoratee) QueryExecutionFactoryRetry(QueryExecutionFactory decoratee, int retryCount, long retryDelayInMs) QueryExecutionFactoryRetry(QueryExecutionFactory decoratee, int retryCount, long retryDelayDuration, TimeUnit retryDelayTimeUnit) QueryExecutionFactoryRetry(QueryExecutionFactory decoratee, com.nurkiewicz.asyncretry.backoff.Backoff backoff) QueryExecutionFactoryRetry(QueryExecutionFactory decoratee, com.nurkiewicz.asyncretry.policy.RetryPolicy retryPolicy) QueryExecutionFactoryRetry(QueryExecutionFactory decoratee, com.nurkiewicz.asyncretry.policy.RetryPolicy retryPolicy, com.nurkiewicz.asyncretry.backoff.Backoff backoff) QueryExecutionFactoryRetry(QueryExecutionFactory decoratee, com.nurkiewicz.asyncretry.policy.RetryPolicy retryPolicy, com.nurkiewicz.asyncretry.backoff.Backoff backoff, boolean fixedDelay) -
Method Summary
Modifier and TypeMethodDescriptionorg.apache.jena.query.QueryExecutioncreateQueryExecution(String queryString) org.apache.jena.query.QueryExecutioncreateQueryExecution(org.apache.jena.query.Query query) static voidwithBackoff(com.nurkiewicz.asyncretry.backoff.Backoff backoff) withExponentialBackoff(long initialDelayMillis, double multiplier) withFixedBackoff(long delayMillis) withFixedRate(boolean fixedDelay) withMaxDelay(long maxDelayMillis) withMaxRetries(int times) withMinDelay(long minDelayMillis) withProportionalJitter(double multiplier) withRetryPolicy(com.nurkiewicz.asyncretry.policy.RetryPolicy retryPolicy) withUniformJitter(long range) Methods inherited from class org.aksw.jenax.dataaccess.sparql.factory.execution.query.QueryExecutionFactoryWrapperBase
close, getDelegate, getId, getState, unwrapMethods 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.factory.execution.query.QueryExecutionFactoryQuery
execConstruct, execConstruct, execConstructDataset, execConstructDataset, execDescribe, execDescribe
-
Field Details
-
scheduler
-
-
Constructor Details
-
QueryExecutionFactoryRetry
public QueryExecutionFactoryRetry(QueryExecutionFactory decoratee, int retryCount, long retryDelayInMs) -
QueryExecutionFactoryRetry
public QueryExecutionFactoryRetry(QueryExecutionFactory decoratee, int retryCount, long retryDelayDuration, TimeUnit retryDelayTimeUnit) -
QueryExecutionFactoryRetry
-
QueryExecutionFactoryRetry
public QueryExecutionFactoryRetry(QueryExecutionFactory decoratee, com.nurkiewicz.asyncretry.backoff.Backoff backoff) -
QueryExecutionFactoryRetry
public QueryExecutionFactoryRetry(QueryExecutionFactory decoratee, com.nurkiewicz.asyncretry.policy.RetryPolicy retryPolicy) -
QueryExecutionFactoryRetry
public QueryExecutionFactoryRetry(QueryExecutionFactory decoratee, com.nurkiewicz.asyncretry.policy.RetryPolicy retryPolicy, com.nurkiewicz.asyncretry.backoff.Backoff backoff) -
QueryExecutionFactoryRetry
public QueryExecutionFactoryRetry(QueryExecutionFactory decoratee, com.nurkiewicz.asyncretry.policy.RetryPolicy retryPolicy, com.nurkiewicz.asyncretry.backoff.Backoff backoff, boolean fixedDelay)
-
-
Method Details
-
createQueryExecution
public org.apache.jena.query.QueryExecution createQueryExecution(org.apache.jena.query.Query query) - Specified by:
createQueryExecutionin interfaceQueryExecutionFactoryQuery- Overrides:
createQueryExecutionin classQueryExecutionFactoryWrapperBase<QueryExecutionFactory>
-
createQueryExecution
- Specified by:
createQueryExecutionin interfaceQueryExecutionFactoryString- Overrides:
createQueryExecutionin classQueryExecutionFactoryWrapperBase<QueryExecutionFactory>
-
withRetryPolicy
public QueryExecutionFactoryRetry withRetryPolicy(com.nurkiewicz.asyncretry.policy.RetryPolicy retryPolicy) -
withBackoff
-
withExponentialBackoff
public QueryExecutionFactoryRetry withExponentialBackoff(long initialDelayMillis, double multiplier) -
withFixedBackoff
-
withFixedRate
-
withFixedRate
-
retryOn
-
abortOn
-
abortIf
public QueryExecutionFactoryRetry abortIf(com.google.common.base.Predicate<Throwable> abortPredicate) -
withUniformJitter
-
withUniformJitter
-
withProportionalJitter
-
withProportionalJitter
-
withMinDelay
-
withMaxDelay
-
withMaxRetries
-
dontRetry
-
withNoDelay
-
main
- Throws:
Exception
-