/** * @return true if the step is configured with any components that require fault tolerance */ protected boolean isFaultTolerant() { return backOffPolicy != null || skipPolicy != null || retryPolicy != null || isPositive(skipLimit) || isPositive(retryLimit) || isPositive(cacheCapacity) || isTrue(readerTransactionalQueue); }
/** * Is the object non-null (or if an Integer, non-zero)? * * @param o an object * @return true if the object has a value */ private boolean isPresent(Object o) { if (o instanceof Integer) { return isPositive((Integer) o); } if (o instanceof Collection) { return !((Collection<?>) o).isEmpty(); } if (o instanceof Map) { return !((Map<?, ?>) o).isEmpty(); } return o != null; }
/** * Is the object non-null (or if an Integer, non-zero)? * * @param o an object * @return true if the object has a value */ private boolean isPresent(Object o) { if (o instanceof Integer) { return isPositive((Integer) o); } return o != null; }
/** * @return true if the step is configured with any components that require fault tolerance */ protected boolean isFaultTolerant() { return backOffPolicy != null || skipPolicy != null || retryPolicy != null || isPositive(skipLimit) || isPositive(retryLimit) || isPositive(cacheCapacity) || isTrue(readerTransactionalQueue); }
/** * @return true if the step is configured with any components that require fault tolerance */ protected boolean isFaultTolerant() { return backOffPolicy != null || skipPolicy != null || retryPolicy != null || isPositive(skipLimit) || isPositive(retryLimit) || isPositive(cacheCapacity) || isTrue(readerTransactionalQueue); }
private boolean isFaultTolerant() { return backOffPolicy != null || skipPolicy != null || retryPolicy != null || isPositive(skipLimit) || isPositive(retryLimit) || isPositive(cacheCapacity) || isTrue(readerTransactionalQueue); }
/** * @return true if the step is configured with any components that require fault tolerance */ protected boolean isFaultTolerant() { return backOffPolicy != null || skipPolicy != null || retryPolicy != null || isPositive(skipLimit) || isPositive(retryLimit) || isPositive(cacheCapacity) || isTrue(readerTransactionalQueue); }
/** * Is the object non-null (or if an Integer, non-zero)? * * @param o an object * @return true if the object has a value */ private boolean isPresent(Object o) { if (o instanceof Integer) { return isPositive((Integer) o); } if (o instanceof Collection) { return !((Collection<?>) o).isEmpty(); } if (o instanceof Map) { return !((Map<?, ?>) o).isEmpty(); } return o != null; }
/** * Is the object non-null (or if an Integer, non-zero)? * * @param o an object * @return true if the object has a value */ private boolean isPresent(Object o) { if (o instanceof Integer) { return isPositive((Integer) o); } if (o instanceof Collection) { return !((Collection<?>) o).isEmpty(); } if (o instanceof Map) { return !((Map<?, ?>) o).isEmpty(); } return o != null; }
/** * Is the object non-null (or if an Integer, non-zero)? * * @param o an object * @return true if the object has a value */ private boolean isPresent(Object o) { if (o instanceof Integer) { return isPositive((Integer) o); } if (o instanceof Collection) { return !((Collection<?>) o).isEmpty(); } if (o instanceof Map) { return !((Map<?, ?>) o).isEmpty(); } return o != null; }