public class RetryPolicyToConstraingAdapter extends Object implements QueryLaunchingConstraint
Constructor and Description |
---|
RetryPolicyToConstraingAdapter(BackOffRetryHandler<QueryContext> constraint) |
Modifier and Type | Method and Description |
---|---|
String |
allowsLaunchOf(QueryContext candidateQuery,
EstimatedImmutableQueryCollection launchedQueries)
Returns whether this constraint allows candidate query to be launched.
|
boolean |
equals(Object o) |
BackOffRetryHandler<QueryContext> |
getConstraint() |
int |
hashCode() |
String |
toString() |
@ConstructorProperties(value="constraint") @Generated(value="lombok") public RetryPolicyToConstraingAdapter(BackOffRetryHandler<QueryContext> constraint)
public String allowsLaunchOf(QueryContext candidateQuery, EstimatedImmutableQueryCollection launchedQueries)
QueryLaunchingConstraint
allowsLaunchOf
in interface QueryLaunchingConstraint
candidateQuery
- The query which is the next candidate to be launched.launchedQueries
- Current launched queries@Generated(value="lombok") public BackOffRetryHandler<QueryContext> getConstraint()
@Generated(value="lombok") public boolean equals(Object o)
@Generated(value="lombok") public int hashCode()
@Generated(value="lombok") public String toString()
Copyright © 2014–2018 Apache Software Foundation. All rights reserved.