.execute(new MethodInvocationRetryCallback(invocation, label), this.recoverer != null ? new ItemRecovererCallback(args, this.recoverer) : null,
try { return this.metadataRetryOperations .execute(new RetryCallback<Collection<PartitionInfo>, Exception>() {
@Override @SuppressWarnings("unchecked") public <T> T execute(final RedisCallback<T> action, final boolean exposeConnection, final boolean pipeline) { if (this.retryOperations != null) { try { return this.retryOperations.execute(new RetryCallback<T, Exception>() { @Override public T doWithRetry(RetryContext context) throws Exception { if (context.getRetryCount() > 0) { logger.warn("Retry of Redis Operation. Retry Count = " + context.getRetryCount()); } return RedisRetryTemplate.super.execute(action, exposeConnection, pipeline); } }, (RecoveryCallback<T>) this.recoveryCallback); } catch (Exception e) { if (e instanceof RuntimeException) { throw (RuntimeException) e; } throw new RedisSystemException("Unknown checked exception translated", e); } } else { return super.execute(action, exposeConnection, pipeline); } } }
@Override @SuppressWarnings("unchecked") public <T> T execute(final RedisCallback<T> action, final boolean exposeConnection, final boolean pipeline) { if (this.retryOperations != null) { try { return this.retryOperations.execute(new RetryCallback<T, Exception>() { @Override public T doWithRetry(RetryContext context) throws Exception { if (context.getRetryCount() > 0) { logger.warn("Retry of Redis Operation. Retry Count = " + context.getRetryCount()); } return RedisRetryTemplate.super.execute(action, exposeConnection, pipeline); } }, (RecoveryCallback<T>) this.recoveryCallback); } catch (Exception e) { if (e instanceof RuntimeException) { throw (RuntimeException) e; } throw new RedisSystemException("Unknown checked exception translated", e); } } else { return super.execute(action, exposeConnection, pipeline); } } }
@Override @SuppressWarnings("unchecked") public <T> T execute(final RedisCallback<T> action, final boolean exposeConnection, final boolean pipeline) { if (this.retryOperations != null) { try { return this.retryOperations.execute(new RetryCallback<T, Exception>() { @Override public T doWithRetry(RetryContext context) throws Exception { if (context.getRetryCount() > 0) { logger.warn("Retry of Redis Operation. Retry Count = " + context.getRetryCount()); } return RedisRetryTemplate.super.execute(action, exposeConnection, pipeline); } }, (RecoveryCallback<T>) this.recoveryCallback); } catch (Exception e) { if (e instanceof RuntimeException) { throw (RuntimeException) e; } throw new RedisSystemException("Unknown checked exception translated", e); } } else { return super.execute(action, exposeConnection, pipeline); } } }
try { return this.metadataRetryOperations .execute((context) -> { Collection<PartitionInfo> partitions = Collections.emptyList();
try { return this.metadataRetryOperations .execute((context) -> { Collection<PartitionInfo> partitions = Collections.emptyList();
protected void forwardToDestination(HttpServletResponse response, String traceId, MappingProperties mapping, RequestData dataToForward) { ResponseEntity<byte[]> responseEntity; if (mapping.isAsynchronous()) { taskExecutor.execute(() -> resolveRetryOperations(mapping).execute( context -> { try { return requestForwarder.forwardHttpRequest(dataToForward, traceId, context, mapping); } catch (Exception e) { log.error("Error forwarding HTTP request asynchronously", e); return null; } } )); responseEntity = new ResponseEntity<>(ACCEPTED); } else { responseEntity = resolveRetryOperations(mapping).execute(context -> requestForwarder.forwardHttpRequest(dataToForward, traceId, context, mapping)); } processResponse(response, responseEntity); }
.execute(new MethodInvocationRetryCallback(invocation, label), this.recoverer != null ? new ItemRecovererCallback(args, this.recoverer) : null,
this.metadataRetryOperations.execute((context) -> {
this.metadataRetryOperations.execute((context) -> {
partitionCount); this.metadataRetryOperations.execute(new RetryCallback<Object, RuntimeException>() {